summaryrefslogtreecommitdiff
path: root/src/daemon/daemon.c
AgeCommit message (Collapse)AuthorFilesLines
2020-10-24FormattingWilliam Wold1-3/+3
2020-10-24Use C-style commentsWilliam Wold1-16/+16
2020-10-24Implement placement on WaylandWilliam Wold1-13/+0
2020-10-24Add initial Wayland backendWilliam Wold1-0/+13
2020-10-24Hide X11-specific code behind ifdefs and checksWilliam Wold1-21/+76
2020-06-17daemon: Use monotonic time instead of real timerbuj1-36/+11
2020-06-12Remove conversion warningsrbuj1-23/+24
2020-04-08daemon: Remove warning about GTimeVal deprecationrbuj1-38/+34
2019-09-17Fix decoding the hints dictionary.Kyle Brenneman1-37/+26
g_variant_lookup works like g_variant_get, so using a format string of "v" only works if the type is actually a GVariant. Since none of the hints have GVariant values, that means every g_variant_get with a "v" format will fail. Fix all of the g_variant_lookup calls so that they either unpack a value directly, or use a "@" prefix when it's more convenient to fetch the value as a GVariant pointer. In addition, in cases where we do fetch a GVariant, make sure that we unreference it afterward.
2019-09-02mate-notification-properties: Add do-not-disturb checkboxJason Conti1-1/+0
2019-09-02src/daemon/daemon.c: check for do-not-disturb and skip notificationJason Conti1-7/+25
2018-12-02Avoid compile warning for g_type_class_add_privateWu Xiaotian1-91/+86
- src/daemon/daemon.c - src/daemon/daemon.h
2018-06-06Migrate from dbus-glib to GDBusyetist1-315/+263
2018-05-13Fix some gdk deprecationsyetist1-15/+15
2018-04-24src/daemon/daemon.c: Replace deprecated gvfs-open call by "gio open" from ↵Mike Gabriel1-2/+2
libglib2.0-bin.
2018-01-30require GTK+ 3.22 and GLib 2.50monsta1-60/+0
and drop additional checks for min/max GLib versions, it's not needed
2017-08-29gtk 3.22: avoid deprecated gdk_screen_get_monitor... functions:ZenWalker1-0/+57
avoid deprecated: gdk_screen_get_monitor_geometry gdk_screen_get_monitor_at_point
2017-08-10avoid deprecated gdk_screen_get_n_monitorsZenWalker1-0/+16
2017-08-09Fixes high cpu usage with large timeoutsJury Verrigni1-1/+1
2017-08-07unescape URI-encode paths for icon filesAlfio Emanuele Fresta1-1/+4
Fix #117
2017-02-14daemon: Export the "action-icons" capability to clientsIkey Doherty1-0/+1
The freedesktop specification states that clients may opt to use named icons instead of textual labels on action buttons. In this instance, the icon name is passed as the 'key' (actions[i+1]) element in the actions data passed to the daemon. For themes to render the icon, they should check the hints passed by the client for a boolean value of "action-icons", and if it is set they should then create an image button based on the key, and not the label. Many applications now make use of action-icons, such as media players, to provide self describing actions with well known icon names, such as playback controls. In the absence of support for action-icons they fallback to less useful buttons and generally less actions. Signed-off-by: Ikey Doherty <[email protected]>
2016-09-02Add support for GNotificationkajzer1-0/+16
2016-06-24Save some RAM in NotifyTimeoutraveit651-2/+2
By using a bit, rather than a byte for gbooleans. https://bugzilla.gnome.org/show_bug.cgi?id=622556 taken from: https://git.gnome.org/browse/notification-daemon/commit/?id=c43d398
2016-06-24GTK+-3.20 daemon: avoid deprecated GdkDeviceManagerraveit651-0/+9
2016-05-19require GTK+ >= 3.14, drop GTK+2 code and --with-gtk build optionmonsta1-150/+0
2015-11-24Revert "daemon: fix "GValueArray is deprecated" warnings"monsta1-9/+9
This reverts commit 7d162d83a2008c25b3134fcdda8265f23d461585. fixes https://github.com/mate-desktop/mate-notification-daemon/issues/91
2015-10-30Merge pull request #81 from raveit65/dev-deprecated-gdk_display_get_pointerWolfgang Ulbrich1-0/+13
GTK3 daemon: fix deprecated gdk_display_get_pointer
2015-10-30GTK3 daemon: fix deprecated gdk_display_get_pointerWolfgang Ulbrich1-0/+13
inspired from: https://git.gnome.org/browse/notification-daemon/patch/?id=9f376d3
2015-10-30daemon: fix "GValueArray is deprecated" warningsGiedrius Statkevičius1-9/+9
GValueArray is deprecated so move to GArray instead in _notify_daemon_pixbuf_from_data_hint()
2015-10-19one more change from char* to gchar*monsta1-1/+1
2015-10-19daemon: fix memory leak in on_popup_location_changed()Giedrius Statkevičius1-3/+4
Don't forget to free the result of g_settings_get_string(). Also, change `slocation' to proper type gchar* for storing results of g_settings_get_string(). Furthermore, this allows to use that pointer in free() without any casting.
2015-10-07daemon: remove unused define WIDTHGiedrius Statkevičius1-2/+0
2015-08-09daemon: drop redundant initializer in notify_daemon_error_quarkGiedrius Statkevičius1-1/+1
static variables are already initialized to 0/NULL by default
2015-08-09daemon: remove redundant initializationGiedrius Statkevičius1-1/+1
static variables are already initialised to 0/NULL by default
2015-08-09daemon: remove redundant G_LOG_LEVEL_ERROR in g_log_set_always_fatal()Giedrius Statkevičius1-1/+1
G_LOG_LEVEL_ERROR is already always fatal so no need to pass it to g_log_set_always_fatal()
2015-07-25daemon: remove redundant initialization of scale_factorGiedrius Statkevičius1-1/+1
2015-07-25daemon: refactor scale_factor calculationGiedrius Statkevičius1-13/+1
Avoid problematic comparison between two floats, remove two unneeded variables and in general reduce the amount of work in that function
2015-07-24Gtk3: daemon: Drop unneeded get_preferred_width and GtkWidgetClassinfirit1-20/+0
2015-07-23Do not use g_assert_nonnullinfirit1-2/+2
This was added in Glib 2.40 and we still target 2.36.
2015-07-22GTK3: remove multi-screen coderaveit651-0/+115
Since GTK+ 3.10.0 there is only one screen per display. taken from https://git.gnome.org/browse/notification-daemon/commit/?id=66fd9bd
2015-07-22GTK3: replace deprecated gtk_icon_info_freeraveit651-0/+4
2015-07-19daemon: exit with 0 on idleGiedrius Statkevičius1-3/+1
Exit with 0 (EXIT_SUCCESS) on idle due to the fact that some D-Bus implementations like kdbus are tracking daemons' exit codes and will mark mate-notification-daemon as if it failed if it exits with 1.
2015-07-09daemon: clean up {add,remove}_exit_timeout()Giedrius Statkevičius1-4/+4
Add a nonnull assertion, remove unnecessary {} around one return statement
2015-07-09daemon: use gbooleans instead of guint bit fieldsGiedrius Statkevičius1-2/+2
Almost everything about bit fields are implementation defined and there is a special type for storing booleans (which these bit fields were used for) so use that instead because of portability
2015-06-17GTK3: Fix positioning notifications with long textraveit651-0/+21
Closes https://github.com/mate-desktop/mate-notification-daemon/pull/52
2015-03-02first connect to settings, then read them.Monsta1-2/+2
fixes the issue with GLib >= 2.43, https://git.gnome.org/browse/glib/commit/?id=8ff5668a458344da22d30491e3ce726d861b3619 Closes https://github.com/mate-desktop/mate-notification-daemon/pull/45
2014-12-31daemon: fixed logic in a couple of placesMonsta1-2/+2
2014-12-23don't leak memoryMonsta1-5/+7
2014-07-03Cleanup GTK_CHECK_VERSION and unify code where possibleinfirit1-8/+0
* Use GtkAllocation for both Gtk+ versions, added in 2.18 * Bump gdk-pixbuf required to 2.22 (release 2010) * GDK_DISPLAY_XDISPLAY | Since always * gdk_display_get_default | Since 2.22 * gdk_window_get_screen | Since 2.24 * gtk_widget_get_window | Since 2.14
2014-06-27Fix assertion WNCK_IS_WORKSPACEJun Wu1-0/+5
Some window manager such as i3-wm may cause wnck_screen_get_active_workspace to return NULL. Add a sanity check before using the return value.