tint2conf: process background selection correctly (issue #582)
This commit is contained in:
parent
ee9207e84a
commit
717f4ac30a
1 changed files with 8 additions and 0 deletions
|
@ -990,8 +990,11 @@ void background_force_update()
|
||||||
background_update(NULL, NULL);
|
background_update(NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean background_updates_disabled = FALSE;
|
||||||
void background_update(GtkWidget *widget, gpointer data)
|
void background_update(GtkWidget *widget, gpointer data)
|
||||||
{
|
{
|
||||||
|
if (background_updates_disabled)
|
||||||
|
return;
|
||||||
int index = gtk_combo_box_get_active(GTK_COMBO_BOX(current_background));
|
int index = gtk_combo_box_get_active(GTK_COMBO_BOX(current_background));
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
return;
|
return;
|
||||||
|
@ -1071,6 +1074,8 @@ void current_background_changed(GtkWidget *widget, gpointer data)
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
background_updates_disabled = TRUE;
|
||||||
|
|
||||||
GtkTreePath *path;
|
GtkTreePath *path;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
|
|
||||||
|
@ -1150,6 +1155,9 @@ void current_background_changed(GtkWidget *widget, gpointer data)
|
||||||
g_boxed_free(GDK_TYPE_COLOR, borderColorOver);
|
g_boxed_free(GDK_TYPE_COLOR, borderColorOver);
|
||||||
g_boxed_free(GDK_TYPE_COLOR, fillColorPress);
|
g_boxed_free(GDK_TYPE_COLOR, fillColorPress);
|
||||||
g_boxed_free(GDK_TYPE_COLOR, borderColorPress);
|
g_boxed_free(GDK_TYPE_COLOR, borderColorPress);
|
||||||
|
|
||||||
|
background_updates_disabled = FALSE;
|
||||||
|
background_update_image(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
void create_panel(GtkWidget *parent)
|
void create_panel(GtkWidget *parent)
|
||||||
|
|
Loading…
Reference in a new issue