[gtk] search entry: Make final
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] search entry: Make final
- Date: Mon, 27 May 2019 03:23:46 +0000 (UTC)
commit bba97eae367da2c5af355609696c984262cf68ef
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 26 23:21:07 2019 -0400
search entry: Make final
gtk/gtksearchentry.c | 18 ++++++++++++++++++
gtk/gtksearchentry.h | 20 --------------------
2 files changed, 18 insertions(+), 20 deletions(-)
---
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index bfd98571f3..8e8e0887cd 100644
--- a/gtk/gtksearchentry.c
+++ b/gtk/gtksearchentry.c
@@ -97,6 +97,24 @@ static guint signals[LAST_SIGNAL] = { 0 };
static GParamSpec *props[NUM_PROPERTIES] = { NULL, };
+typedef struct _GtkSearchEntryClass GtkSearchEntryClass;
+
+struct _GtkSearchEntry
+{
+ GtkWidget parent;
+};
+
+struct _GtkSearchEntryClass
+{
+ GtkWidgetClass parent_class;
+
+ void (* activate) (GtkSearchEntry *entry);
+ void (* search_changed) (GtkSearchEntry *entry);
+ void (* next_match) (GtkSearchEntry *entry);
+ void (* previous_match) (GtkSearchEntry *entry);
+ void (* stop_search) (GtkSearchEntry *entry);
+};
+
typedef struct {
GtkWidget *capture_widget;
GtkEventController *capture_widget_controller;
diff --git a/gtk/gtksearchentry.h b/gtk/gtksearchentry.h
index 04ca00967a..855f081e66 100644
--- a/gtk/gtksearchentry.h
+++ b/gtk/gtksearchentry.h
@@ -38,29 +38,9 @@ G_BEGIN_DECLS
#define GTK_TYPE_SEARCH_ENTRY (gtk_search_entry_get_type ())
#define GTK_SEARCH_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEARCH_ENTRY,
GtkSearchEntry))
-#define GTK_SEARCH_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEARCH_ENTRY,
GtkSearchEntryClass))
#define GTK_IS_SEARCH_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEARCH_ENTRY))
-#define GTK_IS_SEARCH_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEARCH_ENTRY))
-#define GTK_SEARCH_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEARCH_ENTRY,
GtkSearchEntryClass))
typedef struct _GtkSearchEntry GtkSearchEntry;
-typedef struct _GtkSearchEntryClass GtkSearchEntryClass;
-
-struct _GtkSearchEntry
-{
- GtkWidget parent;
-};
-
-struct _GtkSearchEntryClass
-{
- GtkWidgetClass parent_class;
-
- void (* activate) (GtkSearchEntry *entry);
- void (* search_changed) (GtkSearchEntry *entry);
- void (* next_match) (GtkSearchEntry *entry);
- void (* previous_match) (GtkSearchEntry *entry);
- void (* stop_search) (GtkSearchEntry *entry);
-};
GDK_AVAILABLE_IN_ALL
GType gtk_search_entry_get_type (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]