summaryrefslogtreecommitdiff
path: root/applets/notification_area/system-tray
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-04-07 14:12:38 +0200
committerraveit65 <[email protected]>2020-05-25 09:37:56 +0200
commit2570b9ab7f8e26c0035bd6fb5401cba99d682ac4 (patch)
tree208e932cdde1b8e50ac6cffe9e72db7ac6940105 /applets/notification_area/system-tray
parent146cc418fad7c39a21a1ce55f92a895bb0be3332 (diff)
downloadmate-panel-2570b9ab7f8e26c0035bd6fb5401cba99d682ac4.tar.bz2
mate-panel-2570b9ab7f8e26c0035bd6fb5401cba99d682ac4.tar.xz
Fix some cast-function-type warnings introduced in GCC 8
Diffstat (limited to 'applets/notification_area/system-tray')
-rw-r--r--applets/notification_area/system-tray/na-tray-child.c7
-rw-r--r--applets/notification_area/system-tray/na-tray-child.h4
-rw-r--r--applets/notification_area/system-tray/na-tray.c2
3 files changed, 10 insertions, 3 deletions
diff --git a/applets/notification_area/system-tray/na-tray-child.c b/applets/notification_area/system-tray/na-tray-child.c
index cc45abc3..cd7c305a 100644
--- a/applets/notification_area/system-tray/na-tray-child.c
+++ b/applets/notification_area/system-tray/na-tray-child.c
@@ -557,8 +557,13 @@ na_tray_child_set_composited (NaTrayChild *child,
* the child is shifted with respect to the background.
*/
void
-na_tray_child_force_redraw (NaTrayChild *child)
+na_tray_child_force_redraw (gpointer key,
+ gpointer value,
+ gpointer user_data)
{
+ (void) value;
+ (void) user_data;
+ NaTrayChild *child = key;
GtkWidget *widget = GTK_WIDGET (child);
if (gtk_widget_get_mapped (widget))
diff --git a/applets/notification_area/system-tray/na-tray-child.h b/applets/notification_area/system-tray/na-tray-child.h
index aa39658a..5865adab 100644
--- a/applets/notification_area/system-tray/na-tray-child.h
+++ b/applets/notification_area/system-tray/na-tray-child.h
@@ -73,7 +73,9 @@ char *na_tray_child_get_title (NaTrayChild *child);
gboolean na_tray_child_has_alpha (NaTrayChild *child);
void na_tray_child_set_composited (NaTrayChild *child,
gboolean composited);
-void na_tray_child_force_redraw (NaTrayChild *child);
+void na_tray_child_force_redraw (gpointer key,
+ gpointer value,
+ gpointer user_data);
void na_tray_child_get_wm_class (NaTrayChild *child,
char **res_name,
char **res_class);
diff --git a/applets/notification_area/system-tray/na-tray.c b/applets/notification_area/system-tray/na-tray.c
index 8cf1b9ec..fee75dc8 100644
--- a/applets/notification_area/system-tray/na-tray.c
+++ b/applets/notification_area/system-tray/na-tray.c
@@ -715,7 +715,7 @@ idle_redraw_cb (NaTray *tray)
NaTrayPrivate *priv = tray->priv;
g_hash_table_foreach (priv->trays_screen->icon_table,
- (GHFunc) na_tray_child_force_redraw, NULL);
+ na_tray_child_force_redraw, NULL);
priv->idle_redraw_id = 0;