Tint2conf: use bool instead of int for border sides (issue #580)
This commit is contained in:
@@ -508,10 +508,10 @@ void create_background(GtkWidget *parent)
|
|||||||
GTK_TYPE_INT,
|
GTK_TYPE_INT,
|
||||||
GDK_TYPE_COLOR,
|
GDK_TYPE_COLOR,
|
||||||
GTK_TYPE_INT,
|
GTK_TYPE_INT,
|
||||||
GTK_TYPE_INT,
|
GTK_TYPE_BOOL,
|
||||||
GTK_TYPE_INT,
|
GTK_TYPE_BOOL,
|
||||||
GTK_TYPE_INT,
|
GTK_TYPE_BOOL,
|
||||||
GTK_TYPE_INT);
|
GTK_TYPE_BOOL);
|
||||||
|
|
||||||
GtkWidget *table, *label, *button;
|
GtkWidget *table, *label, *button;
|
||||||
int row, col;
|
int row, col;
|
||||||
@@ -746,10 +746,10 @@ void background_create_new()
|
|||||||
{
|
{
|
||||||
int r = 0;
|
int r = 0;
|
||||||
int b = 0;
|
int b = 0;
|
||||||
int sideTop = 0;
|
gboolean sideTop = FALSE;
|
||||||
int sideBottom = 0;
|
gboolean sideBottom = FALSE;
|
||||||
int sideLeft = 0;
|
gboolean sideLeft = FALSE;
|
||||||
int sideRight = 0;
|
gboolean sideRight = FALSE;
|
||||||
GdkColor fillColor;
|
GdkColor fillColor;
|
||||||
cairoColor2GdkColor(0, 0, 0, &fillColor);
|
cairoColor2GdkColor(0, 0, 0, &fillColor);
|
||||||
int fillOpacity = 0;
|
int fillOpacity = 0;
|
||||||
@@ -820,10 +820,10 @@ void background_duplicate(GtkWidget *widget, gpointer data)
|
|||||||
|
|
||||||
int r;
|
int r;
|
||||||
int b;
|
int b;
|
||||||
int sideTop;
|
gboolean sideTop;
|
||||||
int sideBottom;
|
gboolean sideBottom;
|
||||||
int sideLeft;
|
gboolean sideLeft;
|
||||||
int sideRight;
|
gboolean sideRight;
|
||||||
GdkColor *fillColor;
|
GdkColor *fillColor;
|
||||||
int fillOpacity;
|
int fillOpacity;
|
||||||
GdkColor *borderColor;
|
GdkColor *borderColor;
|
||||||
@@ -1013,10 +1013,10 @@ void background_update(GtkWidget *widget, gpointer data)
|
|||||||
r = gtk_spin_button_get_value(GTK_SPIN_BUTTON(background_corner_radius));
|
r = gtk_spin_button_get_value(GTK_SPIN_BUTTON(background_corner_radius));
|
||||||
b = gtk_spin_button_get_value(GTK_SPIN_BUTTON(background_border_width));
|
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));
|
gboolean 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));
|
gboolean 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));
|
gboolean 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 sideRight = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(background_border_sides_right));
|
||||||
|
|
||||||
GdkColor fillColor;
|
GdkColor fillColor;
|
||||||
int fillOpacity;
|
int fillOpacity;
|
||||||
@@ -1085,10 +1085,10 @@ void current_background_changed(GtkWidget *widget, gpointer data)
|
|||||||
int r;
|
int r;
|
||||||
int b;
|
int b;
|
||||||
|
|
||||||
int sideTop;
|
gboolean sideTop;
|
||||||
int sideBottom;
|
gboolean sideBottom;
|
||||||
int sideLeft;
|
gboolean sideLeft;
|
||||||
int sideRight;
|
gboolean sideRight;
|
||||||
|
|
||||||
GdkColor *fillColor;
|
GdkColor *fillColor;
|
||||||
int fillOpacity;
|
int fillOpacity;
|
||||||
|
|||||||
@@ -115,10 +115,10 @@ void config_write_backgrounds(FILE *fp)
|
|||||||
|
|
||||||
int r;
|
int r;
|
||||||
int b;
|
int b;
|
||||||
int sideTop;
|
gboolean sideTop;
|
||||||
int sideBottom;
|
gboolean sideBottom;
|
||||||
int sideLeft;
|
gboolean sideLeft;
|
||||||
int sideRight;
|
gboolean sideRight;
|
||||||
GdkColor *fillColor;
|
GdkColor *fillColor;
|
||||||
int fillOpacity;
|
int fillOpacity;
|
||||||
GdkColor *borderColor;
|
GdkColor *borderColor;
|
||||||
|
|||||||
Reference in New Issue
Block a user