aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-20 13:44:37 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-20 13:44:37 +0200
commitb829a57b5af8ebf4f72b6bcd54a1dd616504f34b (patch)
tree6e099a375ddb8746e80c9a6901de3e3eb20ebe1b
parent7e70eb74a33bf6355179511fee21131b9ad75d9e (diff)
downloadlibayatana-indicator-b829a57b5af8ebf4f72b6bcd54a1dd616504f34b.tar.gz
libayatana-indicator-b829a57b5af8ebf4f72b6bcd54a1dd616504f34b.tar.bz2
libayatana-indicator-b829a57b5af8ebf4f72b6bcd54a1dd616504f34b.zip
libayatana-indicator/indicator-image-helper.c: Silence unused parameter warnings/errors for callback functions.
-rw-r--r--libayatana-indicator/indicator-image-helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libayatana-indicator/indicator-image-helper.c b/libayatana-indicator/indicator-image-helper.c
index 27c332f..2c0e244 100644
--- a/libayatana-indicator/indicator-image-helper.c
+++ b/libayatana-indicator/indicator-image-helper.c
@@ -136,7 +136,7 @@ refresh_image (GtkImage * image)
/* Handles the theme changed signal to refresh the icon to make
sure that it changes appropriately */
static void
-theme_changed_cb (GtkIconTheme * theme, gpointer user_data)
+theme_changed_cb (__attribute__((unused)) GtkIconTheme * theme, gpointer user_data)
{
GtkImage * image = GTK_IMAGE(user_data);
refresh_image(image);
@@ -146,7 +146,7 @@ theme_changed_cb (GtkIconTheme * theme, gpointer user_data)
/* Removes the signal on the theme that was calling update on this
image. */
static void
-image_destroyed_cb (GtkImage * image, gpointer user_data)
+image_destroyed_cb (GtkImage * image, __attribute__((unused)) gpointer user_data)
{
g_signal_handlers_disconnect_by_func(gtk_icon_theme_get_default(), theme_changed_cb, image);
return;
@@ -155,7 +155,7 @@ image_destroyed_cb (GtkImage * image, gpointer user_data)
/* Catch the style changing on the image to make sure
we've got the latest. */
static void
-image_style_change_cb (GtkImage * image, GtkStyle * previous_style, gpointer user_data)
+image_style_change_cb (GtkImage * image, __attribute__((unused)) GtkStyle * previous_style, __attribute__((unused)) gpointer user_data)
{
refresh_image(image);
return;