From f63da72ea6fab13279e0fe437929ce4434f63c9f Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 6 Apr 2020 23:26:07 +0200 Subject: [Dmenu] Fix possible crash. Don't pass empty string. Issue: #1083 --- include/theme.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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. -- cgit v1.2.3