diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-03-31 16:13:04 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-03-31 16:13:04 +0200 |
commit | 48e2a948fd47eb47377ba652df27c887b5a6e897 (patch) | |
tree | 9e8248c122d211357e71901934cab6af597cff23 /src/totem-search-entry.h | |
parent | 1570003efe595bb8781fdf9de3e25d2f7e028052 (diff) | |
download | totem-48e2a948fd47eb47377ba652df27c887b5a6e897.tar.gz |
main: Simplify TotemSearchEntry declaration
Diffstat (limited to 'src/totem-search-entry.h')
-rw-r--r-- | src/totem-search-entry.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/totem-search-entry.h b/src/totem-search-entry.h index 96c56c325..18c3b6c75 100644 --- a/src/totem-search-entry.h +++ b/src/totem-search-entry.h @@ -26,32 +26,10 @@ #include <gtk/gtk.h> #define TOTEM_TYPE_SEARCH_ENTRY totem_search_entry_get_type() -#define TOTEM_SEARCH_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOTEM_TYPE_SEARCH_ENTRY, TotemSearchEntry)) -#define TOTEM_SEARCH_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOTEM_TYPE_SEARCH_ENTRY, TotemSearchEntryClass)) -#define TOTEM_IS_SEARCH_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOTEM_TYPE_SEARCH_ENTRY)) -#define TOTEM_IS_SEARCH_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOTEM_TYPE_SEARCH_ENTRY)) -#define TOTEM_SEARCH_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOTEM_TYPE_SEARCH_ENTRY, TotemSearchEntryClass)) - -typedef struct _TotemSearchEntry TotemSearchEntry; -typedef struct _TotemSearchEntryClass TotemSearchEntryClass; -typedef struct _TotemSearchEntryPrivate TotemSearchEntryPrivate; - -struct _TotemSearchEntry -{ - GtkBox parent; - - TotemSearchEntryPrivate *priv; -}; - -struct _TotemSearchEntryClass -{ - GtkBoxClass parent_class; -}; +G_DECLARE_FINAL_TYPE(TotemSearchEntry, totem_search_entry, TOTEM, SEARCH_ENTRY, GtkBox) GType totem_search_entry_get_type (void) G_GNUC_CONST; - TotemSearchEntry *totem_search_entry_new (void); - void totem_search_entry_add_source (TotemSearchEntry *entry, const gchar *id, const gchar *label, |