diff --git a/include/theme.h b/include/theme.h index 7d98eeec..0a7c5fc3 100644 --- a/include/theme.h +++ b/include/theme.h @@ -283,7 +283,7 @@ Property *rofi_theme_find_property ( ThemeWidget *widget, PropertyType type, con /** * @param widget The widget to query * @param property The property to query. - * @param pad The default value. + * @param defaults The default value. * * Obtain list of elements (strings) of the widget. * diff --git a/source/view.c b/source/view.c index 7a17404e..5605f878 100644 --- a/source/view.c +++ b/source/view.c @@ -46,6 +46,7 @@ #include #include +/** Indicated we understand the startup notification api is not yet stable.*/ #define SN_API_NOT_YET_FROZEN #include #include "rofi.h" @@ -552,20 +553,33 @@ static RofiViewState * __rofi_view_state_create ( void ) return g_malloc0 ( sizeof ( RofiViewState ) ); } +/** + * Thread state for workers started for the view. + */ typedef struct _thread_state_view { + /** Generic thread state. */ thread_state st; + /** Condition. */ GCond *cond; + /** Lock for condition. */ GMutex *mutex; + /** Count that is protected by lock. */ unsigned int *acount; + /** Current state. */ RofiViewState *state; + /** Start row for this worker. */ unsigned int start; + /** Stop row for this worker. */ unsigned int stop; + /** Rows processed. */ unsigned int count; + /** Pattern input to filter. */ const char *pattern; + /** Length of pattern. */ glong plen; } thread_state_view; diff --git a/source/widgets/textbox.c b/source/widgets/textbox.c index 04dfc7d2..644ef31d 100644 --- a/source/widgets/textbox.c +++ b/source/widgets/textbox.c @@ -41,6 +41,7 @@ #include "theme.h" +/** The space reserved for the DOT when enabling multi-select. */ #define DOT_OFFSET 15 static void textbox_draw ( widget *, cairo_t * ); @@ -890,7 +891,7 @@ int textbox_get_font_width ( const textbox *tb ) return rect.width + rect.x; } -/** Caching for the expected character height. */ +/** Caching for the estimated character height. (em) */ static double char_height = -1; double textbox_get_estimated_char_height ( void ) { @@ -912,6 +913,7 @@ double textbox_get_estimated_char_width ( void ) return char_width; } +/** Cache storing the estimated width of a digit (ch). */ static double ch_width = -1; double textbox_get_estimated_ch ( void ) {