[gthumb] set the icon theme search path only when the window is realized
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] set the icon theme search path only when the window is realized
- Date: Tue, 25 Oct 2011 14:55:15 +0000 (UTC)
commit f8b1c513377b5fdb54c0cf76996770e934a88edf
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Oct 20 12:24:45 2011 +0200
set the icon theme search path only when the window is realized
gthumb/gth-browser.c | 1 +
gthumb/gth-main.c | 2 --
2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 8aaeabc..977deb9 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -4081,6 +4081,7 @@ static gboolean
_gth_browser_realize (GtkWidget *browser,
gpointer *data)
{
+ gtk_icon_theme_append_search_path (gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (browser))), GTHUMB_ICON_DIR);
gth_hook_invoke ("gth-browser-realize", browser);
return FALSE;
diff --git a/gthumb/gth-main.c b/gthumb/gth-main.c
index 4723d30..640472b 100644
--- a/gthumb/gth-main.c
+++ b/gthumb/gth-main.c
@@ -229,8 +229,6 @@ gth_main_initialize (void)
g_set_application_name (_("gThumb"));
gtk_window_set_default_icon_name ("gthumb");
#endif
-
- gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), GTHUMB_ICON_DIR);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]