summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-04 15:05:39 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-04 15:05:39 +0100
commit85a0e1a57e1fb21d5802c64685cbff3d53114da1 (patch)
tree4f61a8af0d62f89e862a6888028a285ec7b26b17 /include
parent645fe2489049531b8a2898cfced061b32914a1ab (diff)
Remove class system from new theme format. Fix theme converter.
Diffstat (limited to 'include')
-rw-r--r--include/theme.h25
-rw-r--r--include/widgets/widget-internal.h4
2 files changed, 10 insertions, 19 deletions
diff --git a/include/theme.h b/include/theme.h
index 8733df2a..b85660c0 100644
--- a/include/theme.h
+++ b/include/theme.h
@@ -111,13 +111,13 @@ extern ThemeWidget *rofi_theme;
/**
* @param base Handle to the current level in the theme.
- * @param class Name of the new element.
+ * @param name Name of the new element.
*
* Create a new element in the theme structure.
*
* @returns handle to the new entry.
*/
-ThemeWidget *rofi_theme_find_or_create_class ( ThemeWidget *base, const char *class );
+ThemeWidget *rofi_theme_find_or_create_name ( ThemeWidget *base, const char *class );
/**
* @param widget The widget handle.
@@ -169,7 +169,6 @@ void rofi_theme_widget_add_properties ( ThemeWidget *widget, GHashTable *table )
*/
/**
- * @param wclass The widget class
* @param name The name class
* @param state The widget current state
* @param property The property to query.
@@ -179,10 +178,9 @@ void rofi_theme_widget_add_properties ( ThemeWidget *widget, GHashTable *table )
*
* @returns The distance value of this property for this widget.
*/
-Distance rofi_theme_get_distance ( const char *wclass, const char *name, const char *state, const char *property, int def );
+Distance rofi_theme_get_distance ( const char *name, const char *state, const char *property, int def );
/**
- * @param wclass The widget class
* @param name The name class
* @param state The widget current state
* @param property The property to query.
@@ -192,10 +190,9 @@ Distance rofi_theme_get_distance ( const char *wclass, const char *name, const
*
* @returns The integer value of this property for this widget.
*/
-int rofi_theme_get_integer ( const char *wclass, const char *name, const char *state, const char *property, int def );
+int rofi_theme_get_integer ( const char *name, const char *state, const char *property, int def );
/**
- * @param wclass The widget class
* @param name The name class
* @param state The widget current state
* @param property The property to query.
@@ -205,10 +202,9 @@ int rofi_theme_get_integer ( const char *wclass, const char *name, const char
*
* @returns The boolean value of this property for this widget.
*/
-int rofi_theme_get_boolean ( const char *wclass, const char *name, const char *state, const char *property, int def );
+int rofi_theme_get_boolean ( const char *name, const char *state, const char *property, int def );
/**
- * @param wclass The widget class
* @param name The name class
* @param state The widget current state
* @param property The property to query.
@@ -218,10 +214,9 @@ int rofi_theme_get_boolean ( const char *wclass, const char *name, const char
*
* @returns The string value of this property for this widget.
*/
-char *rofi_theme_get_string ( const char *wclass, const char *name, const char *state, const char *property, char *def );
+char *rofi_theme_get_string ( const char *name, const char *state, const char *property, char *def );
/**
- * @param wclass The widget class
* @param name The name class
* @param state The widget current state
* @param property The property to query.
@@ -231,10 +226,9 @@ char *rofi_theme_get_string ( const char *wclass, const char *name, const char
*
* @returns The double value of this property for this widget.
*/
-double rofi_theme_get_double ( const char *wclass, const char *name, const char *state, const char *property, double def );
+double rofi_theme_get_double ( const char *name, const char *state, const char *property, double def );
/**
- * @param wclass The widget class
* @param name The name class
* @param state The widget current state
* @param property The property to query.
@@ -243,10 +237,9 @@ double rofi_theme_get_double ( const char *wclass, const char *name, const char
* Obtain the color of the widget and applies this to the drawable d.
*
*/
-void rofi_theme_get_color ( const char *wclass, const char *name, const char *state, const char *property, cairo_t *d);
+void rofi_theme_get_color ( const char *name, const char *state, const char *property, cairo_t *d);
/**
- * @param wclass The widget class
* @param name The name class
* @param state The widget current state
* @param property The property to query.
@@ -256,7 +249,7 @@ void rofi_theme_get_color ( const char *wclass, const char *name, const char *s
*
* @returns The padding of this property for this widget.
*/
-Padding rofi_theme_get_padding ( const char *wclass, const char *name, const char *state, const char *property, Padding pad );
+Padding rofi_theme_get_padding ( const char *name, const char *state, const char *property, Padding pad );
/**
* @param d The distance handle.
diff --git a/include/widgets/widget-internal.h b/include/widgets/widget-internal.h
index 6279de9e..cdd9d2f9 100644
--- a/include/widgets/widget-internal.h
+++ b/include/widgets/widget-internal.h
@@ -56,19 +56,17 @@ struct _widget
/** Name of widget (used for theming) */
char *name;
- char *class_name;
const char *state;
};
/**
* @param widget The widget to initialize.
* @param name The name of the widget.
- * @param class_name The name of the class of the widget.
*
* Initializes the widget structure.
*
*/
-void widget_init ( widget *widget , const char *name, const char *class_name );
+void widget_init ( widget *widget , const char *name );
/**
* @param widget The widget handle.