aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-session.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-11 16:22:51 -0600
committerTed Gould <ted@gould.cx>2010-02-11 16:22:51 -0600
commitd2bc464709c47d37d110179c291a914fc989f148 (patch)
tree1bcafb5e9109e37f9a14a0e2d45c42c1b178b30f /src/indicator-session.c
parent54cd89f665c38244b811508d5995010c9a9d08e0 (diff)
downloadayatana-indicator-session-d2bc464709c47d37d110179c291a914fc989f148.tar.gz
ayatana-indicator-session-d2bc464709c47d37d110179c291a914fc989f148.tar.bz2
ayatana-indicator-session-d2bc464709c47d37d110179c291a914fc989f148.zip
Make sure to realize the offscreen window
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;