diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-02-20 13:10:33 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-02-20 13:11:17 -0500 |
commit | 74f4aecef5aac94d0b5afe7570ccd31b1205c9e9 (patch) | |
tree | 1ed5277c775e38c727023a7c3434b33f829fbf6f /gtk/gtktext.h | |
parent | 2e9c7d074483135898c528412665cedbecc89505 (diff) | |
download | gtk+-74f4aecef5aac94d0b5afe7570ccd31b1205c9e9.tar.gz |
text: Make this a final class
No need to derive from it.
Diffstat (limited to 'gtk/gtktext.h')
-rw-r--r-- | gtk/gtktext.h | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/gtk/gtktext.h b/gtk/gtktext.h index eb7615c909..9907daee9d 100644 --- a/gtk/gtktext.h +++ b/gtk/gtktext.h @@ -42,13 +42,9 @@ G_BEGIN_DECLS #define GTK_TYPE_TEXT (gtk_text_get_type ()) #define GTK_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT, GtkText)) -#define GTK_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT, GtkTextClass)) #define GTK_IS_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT)) -#define GTK_IS_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT)) -#define GTK_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT, GtkTextClass)) typedef struct _GtkText GtkText; -typedef struct _GtkTextClass GtkTextClass; struct _GtkText { @@ -56,80 +52,6 @@ struct _GtkText GtkWidget parent_instance; }; -/** - * GtkTextClass: - * @parent_class: The parent class. - * @populate_popup: Class handler for the #GtkText::populate-popup signal. If - * non-%NULL, this will be called to add additional entries to the context - * menu when it is displayed. - * @activate: Class handler for the #GtkText::activate signal. The default - * implementation calls gtk_window_activate_default() on the entry’s top-level - * window. - * @move_cursor: Class handler for the #GtkText::move-cursor signal. The - * default implementation specifies the standard #GtkText cursor movement - * behavior. - * @insert_at_cursor: Class handler for the #GtkText::insert-at-cursor signal. - * The default implementation inserts text at the cursor. - * @delete_from_cursor: Class handler for the #GtkText::delete-from-cursor - * signal. The default implementation deletes the selection or the specified - * number of characters or words. - * @backspace: Class handler for the #GtkText::backspace signal. The default - * implementation deletes the selection or a single character or word. - * @cut_clipboard: Class handler for the #GtkText::cut-clipboard signal. The - * default implementation cuts the selection, if one exists. - * @copy_clipboard: Class handler for the #GtkText::copy-clipboard signal. The - * default implementation copies the selection, if one exists. - * @paste_clipboard: Class handler for the #GtkText::paste-clipboard signal. - * The default implementation pastes at the current cursor position or over - * the current selection if one exists. - * @toggle_overwrite: Class handler for the #GtkText::toggle-overwrite signal. - * The default implementation toggles overwrite mode and blinks the cursor. - * @insert_emoji: Class handler for the #GtkText::insert-emoji signal. - * - * Class structure for #GtkText. All virtual functions have a default - * implementation. Derived classes may set the virtual function pointers for the - * signal handlers to %NULL, but must keep @get_text_area_size and - * @get_frame_size non-%NULL; either use the default implementation, or provide - * a custom one. - */ -struct _GtkTextClass -{ - GtkWidgetClass parent_class; - - /* Hook to customize right-click popup */ - void (* populate_popup) (GtkText *self, - GtkWidget *popup); - - /* Action signals - */ - void (* activate) (GtkText *self); - void (* move_cursor) (GtkText *self, - GtkMovementStep step, - gint count, - gboolean extend); - void (* insert_at_cursor) (GtkText *self, - const gchar *str); - void (* delete_from_cursor) (GtkText *self, - GtkDeleteType type, - gint count); - void (* backspace) (GtkText *self); - void (* cut_clipboard) (GtkText *self); - void (* copy_clipboard) (GtkText *self); - void (* paste_clipboard) (GtkText *self); - void (* toggle_overwrite) (GtkText *self); - void (* insert_emoji) (GtkText *self); - - /*< private >*/ - - /* Padding for future expansion */ - void (*_gtk_reserved1) (void); - void (*_gtk_reserved2) (void); - void (*_gtk_reserved3) (void); - void (*_gtk_reserved4) (void); - void (*_gtk_reserved5) (void); - void (*_gtk_reserved6) (void); -}; - GDK_AVAILABLE_IN_ALL GType gtk_text_get_type (void) G_GNUC_CONST; |