sadrul.gtkblist-theme: aaf05710: Disable the 'Save' buttons since they do...

sadrul at pidgin.im sadrul at pidgin.im
Wed Apr 22 22:41:21 EDT 2009


-----------------------------------------------------------------
Revision: aaf0571078df6d4ed1c501884be9821c86d65bd3
Ancestor: f1d2af282dee198dc918804e2dc0909e720bcca7
Author: sadrul at pidgin.im
Date: 2009-04-23T01:36:55
Branch: im.pidgin.sadrul.gtkblist-theme
URL: http://d.pidgin.im/viewmtn/revision/info/aaf0571078df6d4ed1c501884be9821c86d65bd3

Modified files:
        pidgin/plugins/themeedit-icon.c pidgin/plugins/themeedit.c

ChangeLog: 

Disable the 'Save' buttons since they don't do nothing yet, man.

-------------- next part --------------
============================================================
--- pidgin/plugins/themeedit-icon.c	6b033799abe9ffe5f3ef484e20be2be866e84051
+++ pidgin/plugins/themeedit-icon.c	82cc56c9cf71c6d1e0bb77adf26110966d245370
@@ -174,14 +174,22 @@ use_icon_theme(GtkWidget *w, GtkWidget *
 	g_object_unref(theme);
 }
 
+#ifdef NOT_SADRUL
 static void
 save_icon_theme(GtkWidget *w, GtkWidget *window)
 {
 	/* TODO: SAVE! */
 	gtk_widget_destroy(window);
 }
+#endif
 
 static void
+close_icon_theme(GtkWidget *w, GtkWidget *window)
+{
+	gtk_widget_destroy(window);
+}
+
+static void
 stock_icon_selected(const char *filename, gpointer image)
 {
 	GError *error = NULL;
@@ -293,8 +301,11 @@ void pidgin_icon_theme_edit(void)
 		}
 	}
 
+#ifdef NOT_SADRUL
 	pidgin_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_SAVE, G_CALLBACK(save_icon_theme), dialog);
+#endif
 	pidgin_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_APPLY, G_CALLBACK(use_icon_theme), dialog);
+	pidgin_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CLOSE, G_CALLBACK(close_icon_theme), dialog);
 	gtk_widget_show_all(dialog);
 	g_object_unref(sizegroup);
 }
============================================================
--- pidgin/plugins/themeedit.c	c41c492d8fcbff44aa0f6759a4d3a8b17fbe5208
+++ pidgin/plugins/themeedit.c	ae2cc968c8c9aec679bc6db624abeec86252de1c
@@ -42,14 +42,22 @@ prop_type_is_color(PidginBlistTheme *the
 	return G_IS_PARAM_SPEC_BOXED(spec);
 }
 
+#ifdef NOT_SADRUL
 static void
 save_blist_theme(GtkWidget *w, GtkWidget *window)
 {
 	/* TODO: SAVE! */
 	gtk_widget_destroy(window);
 }
+#endif
 
 static void
+close_blist_theme(GtkWidget *w, GtkWidget *window)
+{
+	gtk_widget_destroy(window);
+}
+
+static void
 theme_color_selected(GtkDialog *dialog, gint response, const char *prop)
 {
 	if (response == GTK_RESPONSE_OK) {
@@ -279,7 +287,11 @@ pidgin_blist_theme_edit(void)
 	}
 
 	gtk_dialog_set_has_separator(GTK_DIALOG(dialog), TRUE);
+#ifdef NOT_SADRUL
 	pidgin_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_SAVE, G_CALLBACK(save_blist_theme), dialog);
+#endif
+	pidgin_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CLOSE, G_CALLBACK(close_blist_theme), dialog);
+
 	gtk_widget_show_all(dialog);
 
 	g_object_unref(group);


More information about the Commits mailing list