summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2018-06-12 12:31:34 +0200
committerDave Davenport <qball@gmpclient.org>2018-06-12 12:31:34 +0200
commitd2576e9f1f3406229b3bfec6e3536529a6f93cd6 (patch)
tree80ba62fb6b55fcb8b3b6fe0871cf2eac5785a2e3 /source
parent32b45c2d10d32c63228871655294ece1579d6ea5 (diff)
More source code documentation updates
Diffstat (limited to 'source')
-rw-r--r--source/keyb.c1
-rw-r--r--source/rofi.c10
2 files changed, 10 insertions, 1 deletions
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 <config.h>
@@ -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 );