From a8ad7d9e2ae5299dc75aba1fb022883aa8396340 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 31 May 2016 13:28:12 +0200 Subject: GTK+3 gpm-tray-icon: fix a Wincompatible-pointer-types build warning gpm-tray-icon.c:339:49: warning: passing argument 1 of 'gtk_widget_get_toplevel' from incompatible pointer type [-Wincompatible-pointer-types] GtkWidget *toplevel = gtk_widget_get_toplevel (menu); --- src/gpm-tray-icon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gpm-tray-icon.c b/src/gpm-tray-icon.c index ab595c8..28e30c5 100644 --- a/src/gpm-tray-icon.c +++ b/src/gpm-tray-icon.c @@ -336,7 +336,7 @@ gpm_tray_icon_create_menu (GpmTrayIcon *icon, guint32 timestamp) #if GTK_CHECK_VERSION (3, 0, 0) /*Set up custom panel menu theme support-gtk3 only */ - GtkWidget *toplevel = gtk_widget_get_toplevel (menu); + GtkWidget *toplevel = gtk_widget_get_toplevel (GTK_WIDGET (menu)); /* Fix any failures of compiz/other wm's to communicate with gtk for transparency in menu theme */ GdkScreen *screen = gtk_widget_get_screen(GTK_WIDGET(toplevel)); GdkVisual *visual = gdk_screen_get_rgba_visual(screen); -- cgit v1.2.1