From 69f17da5ca191c57acb6dfc5bbedc6f14f768e9b Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 4 Nov 2013 16:04:20 -0500 Subject: [PATCH] trivial: Fix the signedness of boolean fields The standard old kludge with gboolean being signed, not unsigned. Encountered while printing the values for debugging. https://bugzilla.gnome.org/show_bug.cgi?id=644306 --- src/shell-app.c | 2 +- src/st/st-adjustment.c | 2 +- src/st/st-scroll-view.c | 4 ++-- src/st/st-widget.c | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/shell-app.c b/src/shell-app.c index ede6bc05f..9e94e5340 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -37,7 +37,7 @@ typedef struct { GSList *windows; /* Whether or not we need to resort the windows; this is done on demand */ - gboolean window_sort_stale : 1; + guint window_sort_stale : 1; /* DBus property notification subscription */ guint properties_changed_id : 1; diff --git a/src/st/st-adjustment.c b/src/st/st-adjustment.c index d7f0bfa3f..08690a918 100644 --- a/src/st/st-adjustment.c +++ b/src/st/st-adjustment.c @@ -45,7 +45,7 @@ struct _StAdjustmentPrivate { /* Do not sanity-check values while constructing, * not all properties may be set yet. */ - gboolean is_constructing : 1; + guint is_constructing : 1; gdouble lower; gdouble upper; diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c index eb35928f2..7b76b07ab 100644 --- a/src/st/st-scroll-view.c +++ b/src/st/st-scroll-view.c @@ -98,8 +98,8 @@ struct _StScrollViewPrivate StScrollViewFade *fade_effect; - gboolean row_size_set : 1; - gboolean column_size_set : 1; + guint row_size_set : 1; + guint column_size_set : 1; guint mouse_scroll : 1; guint overlay_scrollbars : 1; guint hscrollbar_visible : 1; diff --git a/src/st/st-widget.c b/src/st/st-widget.c index f1b6ec7fd..d63af1eae 100644 --- a/src/st/st-widget.c +++ b/src/st/st-widget.c @@ -59,12 +59,12 @@ struct _StWidgetPrivate StThemeNodeTransition *transition_animation; - gboolean is_style_dirty : 1; - gboolean draw_bg_color : 1; - gboolean draw_border_internal : 1; - gboolean track_hover : 1; - gboolean hover : 1; - gboolean can_focus : 1; + guint is_style_dirty : 1; + guint draw_bg_color : 1; + guint draw_border_internal : 1; + guint track_hover : 1; + guint hover : 1; + guint can_focus : 1; gulong texture_file_changed_id;