summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuentin Glidic <sardemff7+git@sardemff7.net>2017-06-02 14:54:21 +0200
committerQuentin Glidic <sardemff7+git@sardemff7.net>2017-06-02 14:54:21 +0200
commit51d34b662e95399ca23caededa9f61f7a7e1dca3 (patch)
treea5ca20235b4f0feb93ef071df2db8018d46b8f83 /test
parent6fefbbf8ab47b87fc4cb4a70f82c7bcc0b91587b (diff)
helper: Add API to support startup notification
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'test')
-rw-r--r--test/helper-config-cmdline-parser.c5
-rw-r--r--test/helper-expand.c5
-rw-r--r--test/helper-pidfile.c5
-rw-r--r--test/helper-test.c5
-rw-r--r--test/helper-tokenize.c5
-rw-r--r--test/mode-test.c6
-rw-r--r--test/textbox-test.c5
-rw-r--r--test/theme-parser-test.c5
-rw-r--r--test/widget-test.c5
9 files changed, 46 insertions, 0 deletions
diff --git a/test/helper-config-cmdline-parser.c b/test/helper-config-cmdline-parser.c
index 741230cb..3e1ddcb5 100644
--- a/test/helper-config-cmdline-parser.c
+++ b/test/helper-config-cmdline-parser.c
@@ -32,6 +32,7 @@
#include <helper.h>
#include <string.h>
#include <xcb/xcb_ewmh.h>
+#include "display.h"
#include "xcb.h"
#include "xcb-internal.h"
#include "rofi.h"
@@ -65,6 +66,10 @@ int monitor_active ( G_GNUC_UNUSED workarea *mon )
return 0;
}
+void display_startup_notification ( G_GNUC_UNUSED RofiHelperExecuteContext *context, G_GNUC_UNUSED GSpawnChildSetupFunc *child_setup, G_GNUC_UNUSED gpointer *user_data )
+{
+}
+
int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char ** argv )
{
diff --git a/test/helper-expand.c b/test/helper-expand.c
index 09760feb..628ffc7e 100644
--- a/test/helper-expand.c
+++ b/test/helper-expand.c
@@ -32,6 +32,7 @@
#include <helper.h>
#include <string.h>
#include <xcb/xcb_ewmh.h>
+#include "display.h"
#include "xcb.h"
#include "xcb-internal.h"
#include "rofi.h"
@@ -66,6 +67,10 @@ int monitor_active ( G_GNUC_UNUSED workarea *mon )
return 0;
}
+void display_startup_notification ( G_GNUC_UNUSED RofiHelperExecuteContext *context, G_GNUC_UNUSED GSpawnChildSetupFunc *child_setup, G_GNUC_UNUSED gpointer *user_data )
+{
+}
+
int main ( int argc, char ** argv )
{
cmd_set_arguments ( argc, argv );
diff --git a/test/helper-pidfile.c b/test/helper-pidfile.c
index d01b5a66..9a5470cd 100644
--- a/test/helper-pidfile.c
+++ b/test/helper-pidfile.c
@@ -32,6 +32,7 @@
#include <helper.h>
#include <string.h>
#include <xcb/xcb_ewmh.h>
+#include "display.h"
#include "xcb.h"
#include "xcb-internal.h"
#include "rofi.h"
@@ -56,6 +57,10 @@ int monitor_active ( G_GNUC_UNUSED workarea *mon )
return 0;
}
+void display_startup_notification ( G_GNUC_UNUSED RofiHelperExecuteContext *context, G_GNUC_UNUSED GSpawnChildSetupFunc *child_setup, G_GNUC_UNUSED gpointer *user_data )
+{
+}
+
int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char ** argv )
{
if ( setlocale ( LC_ALL, "" ) == NULL ) {
diff --git a/test/helper-test.c b/test/helper-test.c
index 6a3cf2de..1ba581c8 100644
--- a/test/helper-test.c
+++ b/test/helper-test.c
@@ -32,6 +32,7 @@
#include <helper.h>
#include <string.h>
#include <xcb/xcb_ewmh.h>
+#include "display.h"
#include "xcb.h"
#include "xcb-internal.h"
#include "rofi.h"
@@ -75,6 +76,10 @@ int monitor_active ( G_GNUC_UNUSED workarea *mon )
return 0;
}
+void display_startup_notification ( G_GNUC_UNUSED RofiHelperExecuteContext *context, G_GNUC_UNUSED GSpawnChildSetupFunc *child_setup, G_GNUC_UNUSED gpointer *user_data )
+{
+}
+
int main ( int argc, char ** argv )
{
cmd_set_arguments ( argc, argv );
diff --git a/test/helper-tokenize.c b/test/helper-tokenize.c
index 87212955..c251f04e 100644
--- a/test/helper-tokenize.c
+++ b/test/helper-tokenize.c
@@ -32,6 +32,7 @@
#include <helper.h>
#include <string.h>
#include <xcb/xcb_ewmh.h>
+#include "display.h"
#include "xcb.h"
#include "xcb-internal.h"
#include "rofi.h"
@@ -56,6 +57,10 @@ int monitor_active ( G_GNUC_UNUSED workarea *mon )
return 0;
}
+void display_startup_notification ( G_GNUC_UNUSED RofiHelperExecuteContext *context, G_GNUC_UNUSED GSpawnChildSetupFunc *child_setup, G_GNUC_UNUSED gpointer *user_data )
+{
+}
+
int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char ** argv )
{
if ( setlocale ( LC_ALL, "" ) == NULL ) {
diff --git a/test/mode-test.c b/test/mode-test.c
index 25f51cb1..00720d95 100644
--- a/test/mode-test.c
+++ b/test/mode-test.c
@@ -38,6 +38,7 @@
#include <dialogs/help-keys.h>
#include <xkbcommon/xkbcommon.h>
#include "rofi.h"
+#include "display.h"
#include "xcb.h"
#include <keyb.h>
#include <helper.h>
@@ -73,6 +74,11 @@ gboolean rofi_view_trigger_action ( G_GNUC_UNUSED RofiViewState *state, G_GNUC_U
{
return FALSE;
}
+
+void display_startup_notification ( G_GNUC_UNUSED RofiHelperExecuteContext *context, G_GNUC_UNUSED GSpawnChildSetupFunc *child_setup, G_GNUC_UNUSED gpointer *user_data )
+{
+}
+
#ifndef _ck_assert_ptr_null
/* Pointer against NULL comparison macros with improved output
* compared to ck_assert(). */
diff --git a/test/textbox-test.c b/test/textbox-test.c
index 539a6a54..edb2d0ff 100644
--- a/test/textbox-test.c
+++ b/test/textbox-test.c
@@ -37,6 +37,7 @@
#include <widgets/textbox.h>
#include <rofi.h>
#include <cairo-xlib.h>
+#include "display.h"
#include "xcb.h"
#include "settings.h"
#include "xrmoptions.h"
@@ -76,6 +77,10 @@ int monitor_active ( G_GNUC_UNUSED workarea *mon )
return 0;
}
+void display_startup_notification ( G_GNUC_UNUSED RofiHelperExecuteContext *context, G_GNUC_UNUSED GSpawnChildSetupFunc *child_setup, G_GNUC_UNUSED gpointer *user_data )
+{
+}
+
int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
{
cairo_surface_t *surf = cairo_image_surface_create ( CAIRO_FORMAT_ARGB32, 100, 100 );
diff --git a/test/theme-parser-test.c b/test/theme-parser-test.c
index 4707f8d3..c84bba61 100644
--- a/test/theme-parser-test.c
+++ b/test/theme-parser-test.c
@@ -35,6 +35,7 @@
#include "xcb-internal.h"
#include "rofi.h"
#include "settings.h"
+#include "display.h"
#include "xcb.h"
#include "theme.h"
#include "css-colors.h"
@@ -70,6 +71,10 @@ int monitor_active ( G_GNUC_UNUSED workarea *mon )
return 0;
}
+void display_startup_notification ( G_GNUC_UNUSED RofiHelperExecuteContext *context, G_GNUC_UNUSED GSpawnChildSetupFunc *child_setup, G_GNUC_UNUSED gpointer *user_data )
+{
+}
+
#ifndef _ck_assert_ptr_null
/* Pointer against NULL comparison macros with improved output
* compared to ck_assert(). */
diff --git a/test/widget-test.c b/test/widget-test.c
index 49c5b6ac..78cd4c4a 100644
--- a/test/widget-test.c
+++ b/test/widget-test.c
@@ -35,6 +35,7 @@
#include <widgets/widget.h>
#include <widgets/widget-internal.h>
#include "rofi.h"
+#include "display.h"
#include "xrmoptions.h"
#include "xcb.h"
unsigned int test =0;
@@ -66,6 +67,10 @@ int rofi_view_error_dialog ( const char *msg, G_GNUC_UNUSED int markup )
return FALSE;
}
+void display_startup_notification ( G_GNUC_UNUSED RofiHelperExecuteContext *context, G_GNUC_UNUSED GSpawnChildSetupFunc *child_setup, G_GNUC_UNUSED gpointer *user_data )
+{
+}
+
int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
{
// box 20 by 40