summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2018-06-12 12:16:33 +0200
committerDave Davenport <qball@gmpclient.org>2018-06-12 12:16:33 +0200
commit32b45c2d10d32c63228871655294ece1579d6ea5 (patch)
tree5c80e33d33a4b74bfe0db98d2659fad8db183a76 /source
parentb8592f8b99c25dcdd1f3b5ef2f00412c29b4bc73 (diff)
Fix documentation
* theme * view * textbox
Diffstat (limited to 'source')
-rw-r--r--source/view.c14
-rw-r--r--source/widgets/textbox.c4
2 files changed, 17 insertions, 1 deletions
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 <cairo.h>
#include <cairo-xcb.h>
+/** Indicated we understand the startup notification api is not yet stable.*/
#define SN_API_NOT_YET_FROZEN
#include <libsn/sn.h>
#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 )
{