diff options
author | Dave Davenport <qball@gmpclient.org> | 2020-04-06 23:26:07 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2020-04-06 23:31:45 +0200 |
commit | f63da72ea6fab13279e0fe437929ce4434f63c9f (patch) | |
tree | 687be3d0dd8505c02c0d75398e143668282fa5cb /include | |
parent | 825fe4ae58e169f92ce940b672054e9fbdefb1ad (diff) |
[Dmenu] Fix possible crash.
Don't pass empty string.
Issue: #1083
Diffstat (limited to 'include')
-rw-r--r-- | include/theme.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/theme.h b/include/theme.h index 751d83b3..0ed71460 100644 --- a/include/theme.h +++ b/include/theme.h @@ -249,6 +249,16 @@ double rofi_theme_get_double ( const widget *widget, const char *property, doub */ void rofi_theme_get_color ( const widget *widget, const char *property, cairo_t *d ); + +/** + * @param widget The widget to query + * @param property The property to query. + * + * Check if a rofi theme has a property set. + * + */ +gboolean rofi_theme_has_property ( const widget *widget, const char *property ); + /** * @param widget The widget to query * @param property The property to query. |