From 8543ac8438c524cc5a743beaaf5459adee445645 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sun, 8 Jan 2017 16:23:17 +0100 Subject: [PATCH] Fix doxygen. --- include/theme.h | 21 ++++++++++++++++++++- source/rofi.c | 3 ++- source/theme.c | 1 + 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/include/theme.h b/include/theme.h index 1964467a..08105654 100644 --- a/include/theme.h +++ b/include/theme.h @@ -5,10 +5,14 @@ #include #include +/** Style of line */ typedef enum { + /** Solid line */ SOLID, + /** Dashed line */ DASH } LineStyle; + /** * Distance unit type. */ @@ -88,18 +92,33 @@ typedef struct Distance left; } Padding; +/** + * Property structure. + */ typedef struct Property { + /** Name of property */ char *name; + /** Type of property. */ PropertyType type; + /** Value */ union { + /** integer */ int i; + /** Double */ double f; + /** String */ char *s; - int b; + /** boolean */ + gboolean b; + /** Color */ ThemeColor color; + /** Padding */ Padding padding; + /** Reference */ struct { + /** Name */ char *name; + /** Cached looked up ref */ struct Property *ref; } link; } value; diff --git a/source/rofi.c b/source/rofi.c index f10cba4c..38db3e66 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -578,8 +578,9 @@ static void error_trap_pop ( G_GNUC_UNUSED SnDisplay *display, xcb_connection_t xcb_flush ( xdisplay ); --error_trap_depth; } - +/** Retry count of grabbing keyboard. */ unsigned int lazy_grab_retry_count_kb = 0; +/** Retry count of grabbing pointer. */ unsigned int lazy_grab_retry_count_pt = 0; static gboolean lazy_grab_pointer ( G_GNUC_UNUSED gpointer data ) { diff --git a/source/theme.c b/source/theme.c index 080bb1e5..42fb47c4 100644 --- a/source/theme.c +++ b/source/theme.c @@ -9,6 +9,7 @@ #include "widgets/textbox.h" #include "view.h" +/** Logging domain for theme */ #define LOG_DOMAIN "Theme" void yyerror ( YYLTYPE *ylloc, const char *);