all repos — tint2 @ 285afd22ad8c515ca7b3876051f55d83bc6d645f

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

Tint2conf: use bool instead of int for border sides (issue #580)
o9000 mrovi9000@gmail.com
commit

285afd22ad8c515ca7b3876051f55d83bc6d645f

parent

50c2f72a6683b14e6d645b13e6e4eafedfe67eca

2 files changed, 24 insertions(+), 24 deletions(-)

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

@@ -508,10 +508,10 @@ GDK_TYPE_COLOR,

GTK_TYPE_INT, GDK_TYPE_COLOR, GTK_TYPE_INT, - GTK_TYPE_INT, - GTK_TYPE_INT, - GTK_TYPE_INT, - GTK_TYPE_INT); + GTK_TYPE_BOOL, + GTK_TYPE_BOOL, + GTK_TYPE_BOOL, + GTK_TYPE_BOOL); GtkWidget *table, *label, *button; int row, col;

@@ -746,10 +746,10 @@ void background_create_new()

{ int r = 0; int b = 0; - int sideTop = 0; - int sideBottom = 0; - int sideLeft = 0; - int sideRight = 0; + gboolean sideTop = FALSE; + gboolean sideBottom = FALSE; + gboolean sideLeft = FALSE; + gboolean sideRight = FALSE; GdkColor fillColor; cairoColor2GdkColor(0, 0, 0, &fillColor); int fillOpacity = 0;

@@ -820,10 +820,10 @@ gtk_tree_path_free(path);

int r; int b; - int sideTop; - int sideBottom; - int sideLeft; - int sideRight; + gboolean sideTop; + gboolean sideBottom; + gboolean sideLeft; + gboolean sideRight; GdkColor *fillColor; int fillOpacity; GdkColor *borderColor;

@@ -1013,10 +1013,10 @@

r = gtk_spin_button_get_value(GTK_SPIN_BUTTON(background_corner_radius)); b = gtk_spin_button_get_value(GTK_SPIN_BUTTON(background_border_width)); - int sideTop = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(background_border_sides_top)); - int sideBottom = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(background_border_sides_bottom)); - int sideLeft = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(background_border_sides_left)); - int sideRight = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(background_border_sides_right)); + gboolean sideTop = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(background_border_sides_top)); + gboolean sideBottom = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(background_border_sides_bottom)); + gboolean sideLeft = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(background_border_sides_left)); + gboolean sideRight = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(background_border_sides_right)); GdkColor fillColor; int fillOpacity;

@@ -1085,10 +1085,10 @@

int r; int b; - int sideTop; - int sideBottom; - int sideLeft; - int sideRight; + gboolean sideTop; + gboolean sideBottom; + gboolean sideLeft; + gboolean sideRight; GdkColor *fillColor; int fillOpacity;
M src/tint2conf/properties_rw.csrc/tint2conf/properties_rw.c

@@ -115,10 +115,10 @@ }

int r; int b; - int sideTop; - int sideBottom; - int sideLeft; - int sideRight; + gboolean sideTop; + gboolean sideBottom; + gboolean sideLeft; + gboolean sideRight; GdkColor *fillColor; int fillOpacity; GdkColor *borderColor;