diff options
author | Pablo Barciela <[email protected]> | 2020-08-10 14:34:23 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2020-08-15 14:10:03 +0200 |
commit | 7e8357d5cc6e04ae96734e2c8e1f87b9a154a52c (patch) | |
tree | 7fdf5c59c8cea2f9067146344434a3d17f69ae71 /plugins/xrandr | |
parent | 27adfb941829c99638219e3e76371c86e42e3dcb (diff) | |
download | mate-settings-daemon-7e8357d5cc6e04ae96734e2c8e1f87b9a154a52c.tar.bz2 mate-settings-daemon-7e8357d5cc6e04ae96734e2c8e1f87b9a154a52c.tar.xz |
add G_GNUC_UNUSED in some unused parameters
Diffstat (limited to 'plugins/xrandr')
-rw-r--r-- | plugins/xrandr/msd-xrandr-manager.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c index a0d7c12..0e157a8 100644 --- a/plugins/xrandr/msd-xrandr-manager.c +++ b/plugins/xrandr/msd-xrandr-manager.c @@ -460,7 +460,9 @@ timeout_cb (gpointer data) } static void -timeout_response_cb (GtkDialog *dialog, int response_id, gpointer data) +timeout_response_cb (GtkDialog *dialog G_GNUC_UNUSED, + int response_id, + gpointer data) { TimeoutDialog *timeout = data; @@ -1670,13 +1672,14 @@ run_display_capplet (GtkWidget *widget) } static void -popup_menu_configure_display_cb (GtkMenuItem *item, gpointer data) +popup_menu_configure_display_cb (GtkMenuItem *item, gpointer data G_GNUC_UNUSED) { run_display_capplet (GTK_WIDGET (item)); } static void -status_icon_popup_menu_selection_done_cb (GtkMenuShell *menu_shell, gpointer data) +status_icon_popup_menu_selection_done_cb (GtkMenuShell *menu_shell G_GNUC_UNUSED, + gpointer data) { MsdXrandrManager *manager = MSD_XRANDR_MANAGER (data); struct MsdXrandrManagerPrivate *priv = manager->priv; @@ -1696,7 +1699,7 @@ status_icon_popup_menu_selection_done_cb (GtkMenuShell *menu_shell, gpointer dat #define OUTPUT_TITLE_ITEM_PADDING 4 static void -title_item_size_allocate_cb (GtkWidget *widget, GtkAllocation *allocation, gpointer data) +title_item_size_allocate_cb (GtkWidget *widget, GtkAllocation *allocation, gpointer data G_GNUC_UNUSED) { /* When GtkMenu does size_request on its items, it asks them for their "toggle size", * which will be non-zero when there are check/radio items. GtkMenu remembers @@ -2325,7 +2328,8 @@ status_icon_popup_menu (MsdXrandrManager *manager, guint button, guint32 timesta } static void -status_icon_activate_cb (GtkStatusIcon *status_icon, gpointer data) +status_icon_activate_cb (GtkStatusIcon *status_icon G_GNUC_UNUSED, + gpointer data) { MsdXrandrManager *manager = MSD_XRANDR_MANAGER (data); @@ -2334,7 +2338,10 @@ status_icon_activate_cb (GtkStatusIcon *status_icon, gpointer data) } static void -status_icon_popup_menu_cb (GtkStatusIcon *status_icon, guint button, guint32 timestamp, gpointer data) +status_icon_popup_menu_cb (GtkStatusIcon *status_icon G_GNUC_UNUSED, + guint button, + guint32 timestamp, + gpointer data) { MsdXrandrManager *manager = MSD_XRANDR_MANAGER (data); @@ -2391,7 +2398,7 @@ start_or_stop_icon (MsdXrandrManager *manager) } static void -on_config_changed (GSettings *settings, +on_config_changed (GSettings *settings G_GNUC_UNUSED, gchar *key, MsdXrandrManager *manager) { |