diff options
author | raveit65 <[email protected]> | 2016-05-31 13:28:12 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-05-31 14:54:51 +0200 |
commit | a8ad7d9e2ae5299dc75aba1fb022883aa8396340 (patch) | |
tree | 7ff2efc665109a6fd516e7f8572d010a1fdbff6b | |
parent | 956b94160dc0340d8aac765d96ac5c3de0b18f53 (diff) | |
download | mate-power-manager-a8ad7d9e2ae5299dc75aba1fb022883aa8396340.tar.bz2 mate-power-manager-a8ad7d9e2ae5299dc75aba1fb022883aa8396340.tar.xz |
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);
-rw-r--r-- | src/gpm-tray-icon.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |