diff --git a/include/keyb.h b/include/keyb.h index e33b00b0..70e16997 100644 --- a/include/keyb.h +++ b/include/keyb.h @@ -36,6 +36,9 @@ * @{ */ +/** + * List of all scopes the mouse can interact on. + */ typedef enum { SCOPE_GLOBAL, @@ -136,6 +139,9 @@ typedef enum SELECT_ELEMENT_10, } KeyBindingAction; +/** + * Actions mouse can take on the ListView. + */ typedef enum { SCROLL_LEFT = 1, @@ -144,6 +150,9 @@ typedef enum SCROLL_UP, } MouseBindingListviewAction; +/** + * Actions mouse can take on the ListView element. + */ typedef enum { SELECT_HOVERED_ENTRY = 1, @@ -151,6 +160,9 @@ typedef enum ACCEPT_HOVERED_CUSTOM, } MouseBindingListviewElementAction; +/** + * Default mouse actions. + */ typedef enum { MOUSE_CLICK_DOWN = 1, diff --git a/source/keyb.c b/source/keyb.c index 01ad1eb8..3f6b85aa 100644 --- a/source/keyb.c +++ b/source/keyb.c @@ -122,6 +122,7 @@ ActionBindingEntry rofi_bindings[] = { .id = ACCEPT_HOVERED_CUSTOM, .scope = SCOPE_MOUSE_LISTVIEW_ELEMENT, .name = "me-accept-custom", .binding = "Control+MouseDPrimary", .comment = "Accept hovered row with custom action" }, }; +/** Default binding of mouse button to action. */ static const gchar *mouse_default_bindings[] = { [MOUSE_CLICK_DOWN] = "MousePrimary", [MOUSE_CLICK_UP] = "!MousePrimary", diff --git a/source/rofi.c b/source/rofi.c index ac8695e2..ad13079b 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -26,6 +26,7 @@ * */ +/** Log domain */ #define G_LOG_DOMAIN "Rofi" #include @@ -76,8 +77,9 @@ // TODO: move this check to mode.c #include "mode-private.h" -// Pidfile. +/** Location of pidfile for this instance. */ char *pidfile = NULL; +/** Location of Cache directory. */ const char *cache_dir = NULL; /** List of error messages.*/ @@ -91,6 +93,7 @@ void rofi_add_error_message ( GString *str ) /** Path to the configuration file */ G_MODULE_EXPORT char *config_path = NULL; +/** Path to the configuration file in the new format */ G_MODULE_EXPORT char *config_path_new = NULL; /** Array holding all activated modi. */ Mode **modi = NULL; @@ -104,6 +107,7 @@ unsigned int num_modi = 0; /** Current selected mode */ unsigned int curr_switcher = 0; +/** Handle to NkBindings object for input devices. */ NkBindings *bindings = NULL; /** Glib main loop. */ @@ -620,6 +624,10 @@ static gboolean setup_modi ( void ) return FALSE; } +/** + * Quit rofi mainloop. + * This will exit program. + **/ void rofi_quit_main_loop ( void ) { g_main_loop_quit ( main_loop );