Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
menu.h File Reference

Context menu for actions and helpers. More...

#include <glib.h>
+ Include dependency graph for menu.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * extract_urls (const char *to_match)
 Extract all urls from the given string.
 
void open_browser (const char *in)
 
void invoke_action (const char *action)
 
void regex_teardown (void)
 
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.
 

Detailed Description

Context menu for actions and helpers.

License
BSD-3-Clause

Definition in file menu.h.

Function Documentation

◆ context_menu()

void context_menu ( void )

Open the context menu that lets the user select urls/actions/etc for all displayed notifications.

Definition at line 320 of file menu.c.

◆ context_menu_for()

void context_menu_for ( GList * notifications)

Open the context menu that lets the user select urls/actions/etc for the specified notifications.

Parameters
notifications(nullable) List of notifications for which the context menu should be opened

Definition at line 326 of file menu.c.

◆ extract_urls()

char * extract_urls ( const char * to_match)

Extract all urls from the given string.

Parameters
to_match(nullable) String to extract URLs
Returns
a string of urls separated by '
'
Return values
NULLNo URLs found

Definition at line 72 of file menu.c.

◆ invoke_action()

void invoke_action ( const char * action)

Definition at line 174 of file menu.c.

◆ open_browser()

void open_browser ( const char * in)

Definition at line 106 of file menu.c.

◆ regex_teardown()

void regex_teardown ( void )

Definition at line 64 of file menu.c.