only create the custom theme entry when changes are made, and delete it
2007-07-29 Jens Granseuer <jensgr@gmx.net> * data/appearance.glade: * appearance-themes.c: (theme_custom_cb): * theme-save.c: (save_dialog_response): only create the custom theme entry when changes are made, and delete it when the theme is saved. These changes obsolete the requirement for a modal details window. svn path=/trunk/; revision=7928
This commit is contained in:
parent
11cd98e2d1
commit
d23fb65eb6
4 changed files with 15 additions and 6 deletions
|
@ -318,7 +318,13 @@ save_dialog_response (GtkWidget *save_dialog,
|
|||
save_background = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (
|
||||
glade_xml_get_widget (data->xml, "save_background_checkbutton")));
|
||||
|
||||
save_theme_to_disk (theme_info, theme_name, theme_description, save_background, &error);
|
||||
if (save_theme_to_disk (theme_info, theme_name, theme_description, save_background, &error)) {
|
||||
/* remove the custom theme */
|
||||
GtkTreeIter iter;
|
||||
|
||||
if (theme_find_in_model (GTK_TREE_MODEL (data->theme_store), "__custom__", &iter))
|
||||
gtk_list_store_remove (data->theme_store, &iter);
|
||||
}
|
||||
|
||||
g_free (theme_name);
|
||||
g_free (theme_description);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue