Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:tarakbumba:MATE
mate-notification-daemon
mate-notification-daemon-1.20.1-no-exit-on-idle...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mate-notification-daemon-1.20.1-no-exit-on-idle.patch of Package mate-notification-daemon
Index: mate-notification-daemon-1.22.0/src/daemon/daemon.c =================================================================== --- mate-notification-daemon-1.22.0/src/daemon/daemon.c +++ mate-notification-daemon-1.22.0/src/daemon/daemon.c 2019-03-13 09:59:53.195014399 +0100 @@ -105,7 +105,6 @@ GSettings* gsettings; guint next_id; guint timeout_source; - guint exit_timeout_source; GHashTable* idle_reposition_notify_ids; GHashTable* monitored_window_hash; GHashTable* notification_hash; @@ -251,27 +250,6 @@ return FALSE; } -static void add_exit_timeout(NotifyDaemon* daemon) -{ - g_assert (daemon != NULL); - - if (daemon->exit_timeout_source > 0) - return; - - daemon->exit_timeout_source = g_timeout_add_seconds(IDLE_SECONDS, do_exit, NULL); -} - -static void remove_exit_timeout(NotifyDaemon* daemon) -{ - g_assert (daemon != NULL); - - if (daemon->exit_timeout_source == 0) - return; - - g_source_remove(daemon->exit_timeout_source); - daemon->exit_timeout_source = 0; -} - static int _gtk_get_monitor_num (GdkMonitor *monitor) { @@ -454,8 +432,6 @@ daemon->timeout_source = 0; daemon->skeleton = notify_daemon_notifications_skeleton_new (); - add_exit_timeout(daemon); - daemon->gsettings = g_settings_new (GSETTINGS_SCHEMA); g_signal_connect (daemon->gsettings, "changed::" GSETTINGS_KEY_POPUP_LOCATION, G_CALLBACK (on_popup_location_changed), daemon); @@ -521,8 +497,6 @@ g_clear_object (&daemon->skeleton); } - remove_exit_timeout(daemon); - g_hash_table_destroy(daemon->monitored_window_hash); g_hash_table_destroy(daemon->idle_reposition_notify_ids); g_hash_table_destroy(daemon->notification_hash); @@ -603,10 +577,6 @@ g_hash_table_remove(daemon->notification_hash, &id); - if (g_hash_table_size(daemon->notification_hash) == 0) - { - add_exit_timeout(daemon); - } } } @@ -824,11 +794,6 @@ if (!has_more_timeouts) { daemon->timeout_source = 0; - - if (g_hash_table_size (daemon->notification_hash) == 0) - { - add_exit_timeout(daemon); - } } return has_more_timeouts; @@ -905,7 +870,6 @@ _calculate_timeout(daemon, nt, timeout); g_hash_table_insert(daemon->notification_hash, g_memdup(&id, sizeof(guint)), nt); - remove_exit_timeout(daemon); return nt; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor