Mercurial > pidgin.yaz
changeset 26720:78bca07e6737
Disable the 'Save' buttons since they don't do nothing yet, man.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 23 Apr 2009 01:36:55 +0000 |
parents | 9484cc400aca |
children | d78f1d400d2f |
files | pidgin/plugins/themeedit-icon.c pidgin/plugins/themeedit.c |
diffstat | 2 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/plugins/themeedit-icon.c Thu Apr 23 00:34:18 2009 +0000 +++ b/pidgin/plugins/themeedit-icon.c Thu Apr 23 01:36:55 2009 +0000 @@ -174,12 +174,20 @@ 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) @@ -293,8 +301,11 @@ } } +#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); }
--- a/pidgin/plugins/themeedit.c Thu Apr 23 00:34:18 2009 +0000 +++ b/pidgin/plugins/themeedit.c Thu Apr 23 01:36:55 2009 +0000 @@ -42,12 +42,20 @@ 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) @@ -279,7 +287,11 @@ } 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);