all repos — tint2 @ 717f4ac30ae1e9297c98cc5e2d08eba65c6c0911

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

tint2conf: process background selection correctly (issue #582)
o9000 mrovi9000@gmail.com
commit

717f4ac30ae1e9297c98cc5e2d08eba65c6c0911

parent

ee9207e84a9056ee95dda712eb0f82b7eaacd721

1 files changed, 8 insertions(+), 0 deletions(-)

jump to
M src/tint2conf/properties.csrc/tint2conf/properties.c

@@ -990,8 +990,11 @@ {

background_update(NULL, NULL); } +static gboolean background_updates_disabled = FALSE; void background_update(GtkWidget *widget, gpointer data) { + if (background_updates_disabled) + return; int index = gtk_combo_box_get_active(GTK_COMBO_BOX(current_background)); if (index < 0) return;

@@ -1071,6 +1074,8 @@ int index = gtk_combo_box_get_active(GTK_COMBO_BOX(current_background));

if (index < 0) return; + background_updates_disabled = TRUE; + GtkTreePath *path; GtkTreeIter iter;

@@ -1150,6 +1155,9 @@ g_boxed_free(GDK_TYPE_COLOR, fillColorOver);

g_boxed_free(GDK_TYPE_COLOR, borderColorOver); g_boxed_free(GDK_TYPE_COLOR, fillColorPress); g_boxed_free(GDK_TYPE_COLOR, borderColorPress); + + background_updates_disabled = FALSE; + background_update_image(index); } void create_panel(GtkWidget *parent)