Move context_menu into right header

This commit is contained in:
Benedikt Heine 2018-10-31 13:41:41 +01:00
parent 63163fb498
commit 08019dc268
6 changed files with 9 additions and 8 deletions

View File

@ -30,8 +30,6 @@
GMainLoop *mainloop = NULL;
GSList *rules = NULL;
/* misc functions */
static gboolean run(void *data);

View File

@ -14,7 +14,6 @@
#define ColFG 1
#define ColBG 0
extern GSList *rules;
extern const char *colors[3][3];
void wake_up(void);
@ -23,7 +22,6 @@ int dunst_main(int argc, char *argv[]);
void usage(int exit_status);
void print_version(void);
void context_menu(void);
void pause_signal_handler(int sig);
#endif

View File

@ -270,10 +270,7 @@ char *invoke_dmenu(const char *dmenu_input)
return ret;
}
/*
* Open the context menu that let's the user
* select urls/actions/etc
*/
/* see menu.h */
void context_menu(void)
{
GError *err = NULL;

View File

@ -7,5 +7,10 @@ void open_browser(const char *in);
void invoke_action(const char *action);
void regex_teardown(void);
/**
* Open the context menu that lets the user select urls/actions/etc.
*/
void context_menu(void);
#endif
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -7,6 +7,8 @@
#include "dunst.h"
GSList *rules = NULL;
/*
* Apply rule to notification.
*/

View File

@ -24,6 +24,7 @@
#include "src/dunst.h"
#include "src/log.h"
#include "src/markup.h"
#include "src/menu.h"
#include "src/notification.h"
#include "src/queues.h"
#include "src/settings.h"