aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indicator-session.c')
-rw-r--r--src/indicator-session.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index f0ec5a4..81453f2 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -177,6 +177,7 @@ switch_property_change (DbusmenuMenuitem * item, const gchar * property, const G
GtkWidget * off = gtk_offscreen_window_new();
GtkWidget * label = gtk_label_new(username);
gtk_container_add(GTK_CONTAINER(off), label);
+ gtk_widget_realize(off);
GdkPixmap * pixmap = gtk_offscreen_window_get_pixmap(GTK_OFFSCREEN_WINDOW(off));
gint width, height;