[libgda: 1/2] tools: Rename variable bool to bool_value
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda: 1/2] tools: Rename variable bool to bool_value
- Date: Sat, 18 Sep 2021 14:24:13 +0000 (UTC)
commit 884f3bc50428f929d06772ef1752e141bf0db126
Author: Chris Mayo <aklhfex gmail com>
Date: Mon Mar 1 19:22:53 2021 +0000
tools: Rename variable bool to bool_value
Fix compile failure with GCC 9.3:
error: two or more data types in declaration specifiers
tools/browser/canvas/browser-canvas-text.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tools/browser/canvas/browser-canvas-text.c b/tools/browser/canvas/browser-canvas-text.c
index 58fc7cd1c..7908ceb32 100644
--- a/tools/browser/canvas/browser-canvas-text.c
+++ b/tools/browser/canvas/browser-canvas-text.c
@@ -232,7 +232,7 @@ browser_canvas_text_set_property (GObject *object,
const gchar *cstr = NULL;
gchar *str;
gdouble size = 0;
- gboolean bool = FALSE;
+ gboolean bool_value = FALSE;
ct = BROWSER_CANVAS_TEXT (object);
@@ -270,11 +270,11 @@ browser_canvas_text_set_property (GObject *object,
ct->priv->highlight_color = g_strdup (BROWSER_CANVAS_ENTITY_COLOR);
break;
case PROP_UNDERLINE:
- bool = g_value_get_boolean (value);
- ct->priv->underline = bool;
+ bool_value = g_value_get_boolean (value);
+ ct->priv->underline = bool_value;
adjust_text_pango_attributes (ct);
if (ct->priv->text_item) {
- if (bool) {
+ if (bool_value) {
str = g_strdup_printf ("<u>%s</u>", ct->priv->text);
g_object_set (G_OBJECT (ct->priv->text_item),
"text", str,
@@ -288,8 +288,8 @@ browser_canvas_text_set_property (GObject *object,
}
break;
case PROP_BOLD:
- bool = g_value_get_boolean (value);
- ct->priv->bold = bool;
+ bool_value = g_value_get_boolean (value);
+ ct->priv->bold = bool_value;
adjust_text_pango_attributes (ct);
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]