[libdazzle] suggestions: add action helper signal to suggestion entry
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] suggestions: add action helper signal to suggestion entry
- Date: Mon, 22 Apr 2019 21:23:38 +0000 (UTC)
commit ac6a30099ac9e9654b241b0c5eba4e4979b8bdff
Author: Christian Hergert <chergert redhat com>
Date: Mon Apr 22 14:23:08 2019 -0700
suggestions: add action helper signal to suggestion entry
src/suggestions/dzl-suggestion-entry.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/src/suggestions/dzl-suggestion-entry.c b/src/suggestions/dzl-suggestion-entry.c
index f8ecad5..62034cf 100644
--- a/src/suggestions/dzl-suggestion-entry.c
+++ b/src/suggestions/dzl-suggestion-entry.c
@@ -29,6 +29,7 @@
#include "suggestions/dzl-suggestion-entry-buffer.h"
#include "suggestions/dzl-suggestion-popover.h"
#include "suggestions/dzl-suggestion-private.h"
+#include "util/dzl-gtk.h"
#include "util/dzl-util-private.h"
typedef struct
@@ -59,6 +60,7 @@ enum {
};
enum {
+ ACTION,
ACTIVATE_SUGGESTION,
HIDE_SUGGESTIONS,
MOVE_SUGGESTION,
@@ -563,6 +565,18 @@ dzl_suggestion_entry_class_init (DzlSuggestionEntryClass *klass)
g_object_class_install_properties (object_class, N_PROPS, properties);
+ signals [ACTION] =
+ g_signal_new_class_handler ("action",
+ G_TYPE_FROM_CLASS (klass),
+ G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
+ G_CALLBACK (dzl_gtk_widget_action_with_string),
+ NULL, NULL, NULL,
+ G_TYPE_NONE,
+ 3,
+ G_TYPE_STRING,
+ G_TYPE_STRING,
+ G_TYPE_STRING);
+
signals [HIDE_SUGGESTIONS] =
g_signal_new ("hide-suggestions",
G_TYPE_FROM_CLASS (klass),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]