|
Dunst
Lightweight notification daemon
|
#include "menu.h"#include <errno.h>#include <glib.h>#include <regex.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/wait.h>#include <unistd.h>#include "dbus.h"#include "dunst.h"#include "log.h"#include "notification.h"#include "queues.h"#include "settings.h"#include "utils.h"
Include dependency graph for menu.c:Go to the source code of this file.
Functions | |
| static gpointer | context_menu_thread (gpointer data) |
| static bool | regex_init (void) |
| Initializes regexes needed for matching. | |
| void | regex_teardown (void) |
| char * | extract_urls (const char *to_match) |
| Extract all urls from the given string. | |
| void | open_browser (const char *in) |
| char * | notification_dmenu_string (struct notification *n) |
| void | invoke_action (const char *action) |
| void | dispatch_menu_result (const char *input) |
| Dispatch whatever has been returned by dmenu. | |
| char * | invoke_dmenu (const char *dmenu_input) |
| Call dmenu with the specified input. | |
| static GList * | get_actionable_notifications (void) |
| Lock and get all notifications with an action or URL. | |
| void | context_menu (void) |
| Open the context menu that lets the user select urls/actions/etc for all displayed notifications. | |
| void | context_menu_for (GList *notifications) |
| Open the context menu that lets the user select urls/actions/etc for the specified notifications. | |
| static gboolean | context_menu_result_dispatch (gpointer user_data) |
Variables | ||
| static bool | is_initialized = false | |
| static regex_t | url_regex | |
| struct { | ||
| GList * locked_notifications | ||
| } | menu_ctx | |
Definition in file menu.c.
| void context_menu | ( | void | ) |
| void context_menu_for | ( | GList * | notifications | ) |
|
static |
| void dispatch_menu_result | ( | const char * | input | ) |
| char * extract_urls | ( | const char * | to_match | ) |
|
static |
| char * invoke_dmenu | ( | const char * | dmenu_input | ) |
| char * notification_dmenu_string | ( | struct notification * | n | ) |
|
static |