[evolution-rss] fix custom icon in preferences



commit ec83a0f5e5665bbaf7bdc90c803ddb4c7496e819
Author: Lucian Langa <lucilanga gnome org>
Date:   Wed Sep 2 12:45:53 2009 +0300

    fix custom icon in preferences

 src/rss-config-factory.c |   12 +++---------
 src/rss.c                |    2 --
 2 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/src/rss-config-factory.c b/src/rss-config-factory.c
index af73245..23db073 100644
--- a/src/rss-config-factory.c
+++ b/src/rss-config-factory.c
@@ -2633,14 +2633,8 @@ init_rss_prefs(void)
 	EShell *shell;
         GtkWidget *preferences_window;
 
-	gchar *iconfile = g_build_filename (EVOLUTION_ICONDIR,
-	                                    "rss.png",
-						NULL);
-	GdkPixbuf *folder_icon = gdk_pixbuf_new_from_file (iconfile, NULL);
-	gtk_icon_theme_add_builtin_icon ("evolution-rss-large",
-				GTK_ICON_SIZE_INVALID,
-				folder_icon);
-	g_free(iconfile);
+	gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
+                                           EVOLUTION_ICONDIR);
 			
 	shell = e_shell_get_default();
         preferences_window = e_shell_get_preferences_window (shell);
@@ -2648,7 +2642,7 @@ init_rss_prefs(void)
         e_preferences_window_add_page (
                 E_PREFERENCES_WINDOW (preferences_window),
                 "page-rss",
-                "evolution-rss-large",
+                "rss",
                 _("News And Blogs"),
 		rss_config_control_new(),
                 800);
diff --git a/src/rss.c b/src/rss.c
index f36d37d..eb01846 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -3915,7 +3915,6 @@ store_folder_deleted(CamelObject *o, void *event_data, void *data)
 static void
 store_folder_renamed(CamelObject *o, void *event_data, void *data)
 {
-g_print("folder rename\n");
 	CamelRenameInfo *info = event_data;
 
 	gchar *main_folder = lookup_main_folder();
@@ -4212,7 +4211,6 @@ void org_gnome_cooly_rss_startup(void *ep, ESEventTargetUpgrade *t);
 void org_gnome_cooly_rss_startup(void *ep, ESEventTargetUpgrade *t)
 #endif
 {
-g_print("startup\n");
   	if (gconf_client_get_bool (rss_gconf, GCONF_KEY_START_CHECK, NULL)) {
 		//as I don't know how to set this I'll setup a 10 secs timeout
 		//and return false for disableation



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]