summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gpm-tray-icon.c2
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);