summaryrefslogtreecommitdiffstats
path: root/lexer
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-12-13 00:09:51 +0100
committerDave Davenport <qball@gmpclient.org>2016-12-13 00:09:51 +0100
commit38035568f375c701d49658adbe9c7d632d584b31 (patch)
tree61462ff62f804fe4744c2aaf66d0f62fa78fe6b1 /lexer
parentfd64bb7a41bf72ad19df772a2cae336ded484b87 (diff)
Fix separator class and tweak parser inheritance.
Diffstat (limited to 'lexer')
-rw-r--r--lexer/theme-parser.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y
index 468691ac..94a3691c 100644
--- a/lexer/theme-parser.y
+++ b/lexer/theme-parser.y
@@ -89,6 +89,7 @@ CLASS_PREFIX class_name state_path BOPEN optional_properties BCLOSE
gchar *classn = g_strconcat ( "@", $2, NULL);
Widget *widget = rofi_theme_find_or_create_class ( rofi_theme , classn );
g_free(classn);
+ widget->set = TRUE;
for ( GList *iter = g_list_first ( $3 ); iter ; iter = g_list_next ( iter ) ) {
widget = rofi_theme_find_or_create_class ( widget, iter->data );
}
@@ -109,6 +110,7 @@ CLASS_PREFIX class_name state_path BOPEN optional_properties BCLOSE
}
g_list_foreach ( $2, (GFunc)g_free , NULL );
g_list_free ( $2 );
+ widget->set = TRUE;
for ( GList *iter = g_list_first ( $3 ); iter ; iter = g_list_next ( iter ) ) {
widget = rofi_theme_find_or_create_class ( widget, iter->data );
}