summaryrefslogtreecommitdiffstats
path: root/lexer
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-01 18:08:49 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-01 18:08:49 +0100
commitccf3f23d9b1da3f52c269422c22c4faa4b43eb0a (patch)
treefd524c8666c7d60ab978210940e782255853be0a /lexer
parent62bfeafb1a84ddf9cd200200dcfd613cf796be0b (diff)
Update comments, rename Widget to ThemeWidget.
Diffstat (limited to 'lexer')
-rw-r--r--lexer/theme-parser.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y
index e2f7795f..9730de7a 100644
--- a/lexer/theme-parser.y
+++ b/lexer/theme-parser.y
@@ -16,7 +16,7 @@
#include "theme.h"
#include "lexer/theme-parser.h"
-Widget *rofi_theme = NULL;
+ThemeWidget *rofi_theme = NULL;
void yyerror(YYLTYPE *yylloc, const char* s);
int yylex (YYSTYPE *, YYLTYPE *);
%}
@@ -27,7 +27,7 @@ int yylex (YYSTYPE *, YYLTYPE *);
char *sval;
int bval;
ThemeColor colorval;
- Widget *theme;
+ ThemeWidget *theme;
GList *name_path;
Property *property;
GHashTable *property_list;
@@ -79,7 +79,7 @@ start:
entries:
%empty {
// There is always a base widget.
- $$ = rofi_theme = (Widget*)g_malloc0 (sizeof(Widget));
+ $$ = rofi_theme = (ThemeWidget*)g_malloc0 (sizeof(ThemeWidget));
rofi_theme->name = g_strdup ( "Root" );
}
| entries
@@ -94,7 +94,7 @@ entry:
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 );
+ ThemeWidget *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 ) ) {
@@ -107,7 +107,7 @@ CLASS_PREFIX class_name state_path BOPEN optional_properties BCLOSE
}
| NAME_PREFIX name_path state_path BOPEN optional_properties BCLOSE
{
- Widget *widget = rofi_theme;
+ ThemeWidget *widget = rofi_theme;
for ( GList *iter = g_list_first ( $2 ); iter ; iter = g_list_next ( iter ) ) {
widget = rofi_theme_find_or_create_class ( widget, iter->data );
}