summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-05-31 11:23:24 +0200
committerDave Davenport <qball@gmpclient.org>2017-05-31 11:23:24 +0200
commit59e012e85bb73467943a01666da584eb9a734136 (patch)
tree30b6b73d02da74d6976a129e38465662f5063dbf /source
parent4d8784cf85a5108340a2b2a684e2bd1d9f77269d (diff)
[Textbox] fix wrong flag check for icon.
Diffstat (limited to 'source')
-rw-r--r--source/widgets/listview.c2
-rw-r--r--source/widgets/textbox.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/widgets/listview.c b/source/widgets/listview.c
index 5b82a8db..2cab442d 100644
--- a/source/widgets/listview.c
+++ b/source/widgets/listview.c
@@ -243,7 +243,7 @@ static void listview_recompute_elements ( listview *lv )
char *name = g_strjoin ( ".", lv->listview_name, "element", NULL );
for ( unsigned int i = lv->cur_elements; i < newne; i++ ) {
TextboxFlags flags = ( lv->multi_select ) ? TB_INDICATOR : 0;
- flags |= (config.show_icons)? TB_ICON:0;
+ flags |= ((config.show_icons)? TB_ICON:0);
lv->boxes[i] = textbox_create_full ( WIDGET_TYPE_LISTVIEW_ELEMENT, name, flags, NORMAL, "" );
widget_set_trigger_action_handler ( WIDGET ( lv->boxes[i] ), listview_element_trigger_action, lv );
}
diff --git a/source/widgets/textbox.c b/source/widgets/textbox.c
index b2fcbded..ba37d38d 100644
--- a/source/widgets/textbox.c
+++ b/source/widgets/textbox.c
@@ -378,7 +378,7 @@ static void textbox_draw ( widget *wid, cairo_t *draw )
int y = top + ( pango_font_metrics_get_ascent ( tb->metrics ) - pango_layout_get_baseline ( tb->layout ) ) / PANGO_SCALE;
// draw Icon
- if ( (tb->flags|TB_ICON) == TB_ICON && tb->icon != NULL ) {
+ if ( (tb->flags&TB_ICON) == TB_ICON && tb->icon != NULL ) {
int iconheight = textbox_get_font_height ( tb );
int translatex = 0;
cairo_save(draw);