Mercurial > pidgin.yaz
comparison pidgin/plugins/themeedit-icon.c @ 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 | ed8385b26f6e |
children | 81559f83e993 |
comparison
equal
deleted
inserted
replaced
26719:9484cc400aca | 26720:78bca07e6737 |
---|---|
172 pidgin_stock_load_stock_icon_theme((PidginStockIconTheme *)theme); | 172 pidgin_stock_load_stock_icon_theme((PidginStockIconTheme *)theme); |
173 pidgin_blist_refresh(purple_get_blist()); | 173 pidgin_blist_refresh(purple_get_blist()); |
174 g_object_unref(theme); | 174 g_object_unref(theme); |
175 } | 175 } |
176 | 176 |
177 #ifdef NOT_SADRUL | |
177 static void | 178 static void |
178 save_icon_theme(GtkWidget *w, GtkWidget *window) | 179 save_icon_theme(GtkWidget *w, GtkWidget *window) |
179 { | 180 { |
180 /* TODO: SAVE! */ | 181 /* TODO: SAVE! */ |
182 gtk_widget_destroy(window); | |
183 } | |
184 #endif | |
185 | |
186 static void | |
187 close_icon_theme(GtkWidget *w, GtkWidget *window) | |
188 { | |
181 gtk_widget_destroy(window); | 189 gtk_widget_destroy(window); |
182 } | 190 } |
183 | 191 |
184 static void | 192 static void |
185 stock_icon_selected(const char *filename, gpointer image) | 193 stock_icon_selected(const char *filename, gpointer image) |
291 | 299 |
292 g_object_set_data(G_OBJECT(vbox), id, image); | 300 g_object_set_data(G_OBJECT(vbox), id, image); |
293 } | 301 } |
294 } | 302 } |
295 | 303 |
304 #ifdef NOT_SADRUL | |
296 pidgin_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_SAVE, G_CALLBACK(save_icon_theme), dialog); | 305 pidgin_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_SAVE, G_CALLBACK(save_icon_theme), dialog); |
306 #endif | |
297 pidgin_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_APPLY, G_CALLBACK(use_icon_theme), dialog); | 307 pidgin_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_APPLY, G_CALLBACK(use_icon_theme), dialog); |
308 pidgin_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CLOSE, G_CALLBACK(close_icon_theme), dialog); | |
298 gtk_widget_show_all(dialog); | 309 gtk_widget_show_all(dialog); |
299 g_object_unref(sizegroup); | 310 g_object_unref(sizegroup); |
300 } | 311 } |
301 | 312 |