[gthumb] realize the widget before adding the ui to get the icons from the icon theme
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] realize the widget before adding the ui to get the icons from the icon theme
- Date: Sun, 6 Nov 2011 11:26:40 +0000 (UTC)
commit 9fb8fff0064863f01138417b7a7fb503b9956605
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Nov 6 12:11:22 2011 +0100
realize the widget before adding the ui to get the icons from the icon theme
gthumb/gth-browser.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index bf0e60b..af88624 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -4157,6 +4157,12 @@ gth_browser_init (GthBrowser *browser)
gtk_window_set_has_resize_grip (GTK_WINDOW (browser), TRUE);
+ /* realize the widget before adding the ui to get the icons from the icon theme */
+
+ g_signal_connect (browser, "realize", G_CALLBACK (_gth_browser_realize), NULL);
+ g_signal_connect (browser, "unrealize", G_CALLBACK (_gth_browser_unrealize), NULL);
+ gtk_widget_realize (GTK_WIDGET (browser));
+
/* ui actions */
browser->priv->actions = gtk_action_group_new ("Actions");
@@ -4541,9 +4547,6 @@ gth_browser_init (GthBrowser *browser)
gth_hook_invoke ("gth-browser-construct", browser);
- g_signal_connect (browser, "realize", G_CALLBACK (_gth_browser_realize), NULL);
- g_signal_connect (browser, "unrealize", G_CALLBACK (_gth_browser_unrealize), NULL);
-
performance (DEBUG_INFO, "window initialized");
/* gconf notifications */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]