diff options
| author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-07-12 20:05:48 +0200 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-07-23 16:27:33 +0200 |
| commit | 98ac529c0af57324e9d15c8a856a99ee5cb5cfd4 (patch) | |
| tree | cd94d5359e6170b1e58483331015881836a4a91f /src | |
| parent | 527a7182d671a4c6212f3b8972dd0b40597b9a84 (diff) | |
Make status widget visible immediately
GtkNotebook will use the currently visible widget as default page.
If we don't show status widget before we append the display, the
current page will be on display. Quoting Gtk+ documentation:
"Note that due to historical reasons, GtkNotebook refuses to switch to
a page unless the child widget is visible. Therefore, it is
recommended to show child widgets before adding them to a notebook."
Diffstat (limited to 'src')
| -rw-r--r-- | src/virt-viewer-notebook.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/virt-viewer-notebook.c b/src/virt-viewer-notebook.c index 09e8ec4..cc7136b 100644 --- a/src/virt-viewer-notebook.c +++ b/src/virt-viewer-notebook.c @@ -86,6 +86,7 @@ virt_viewer_notebook_init (VirtViewerNotebook *self) priv->status = gtk_label_new(""); gtk_notebook_set_show_tabs(GTK_NOTEBOOK(self), FALSE); gtk_notebook_set_show_border(GTK_NOTEBOOK(self), FALSE); + gtk_widget_show_all(priv->status); gtk_notebook_append_page(GTK_NOTEBOOK(self), priv->status, NULL); gdk_color_parse("white", &color); gtk_widget_modify_fg(priv->status, GTK_STATE_NORMAL, &color); |
