diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-03-14 17:02:03 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-03-14 17:02:03 +0100 |
commit | d52c80d76f6a6dc829e7b0d847d4e2bbf6f76367 (patch) | |
tree | c9fc8cd5c2b0f3cae44c7293ff6fbb155e92001e /source/theme.c | |
parent | 479f515181c32935cdf79b7b3b09ef29160019f4 (diff) |
[Textbox] Remove unneeded calls to pango_layout_get_pixel_size.
This was 21% of the widget update time.
Diffstat (limited to 'source/theme.c')
-rw-r--r-- | source/theme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/theme.c b/source/theme.c index 122fa6a4..c57778c4 100644 --- a/source/theme.c +++ b/source/theme.c @@ -305,7 +305,7 @@ void rofi_theme_widget_add_properties ( ThemeWidget *widget, GHashTable *table ) * Public API */ -static ThemeWidget *rofi_theme_find_single ( ThemeWidget *widget, const char *name ) +static inline ThemeWidget *rofi_theme_find_single ( ThemeWidget *widget, const char *name ) { for ( unsigned int j = 0; j < widget->num_widgets; j++ ) { if ( g_strcmp0 ( widget->widgets[j]->name, name ) == 0 ) { |