diff options
Diffstat (limited to 'gtk/gtklabel.h')
-rw-r--r-- | gtk/gtklabel.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gtk/gtklabel.h b/gtk/gtklabel.h index 787ffed50f..6285670113 100644 --- a/gtk/gtklabel.h +++ b/gtk/gtklabel.h @@ -47,19 +47,24 @@ extern "C" { typedef struct _GtkLabel GtkLabel; typedef struct _GtkLabelClass GtkLabelClass; +typedef struct _GtkLabelSelectionInfo GtkLabelSelectionInfo; + struct _GtkLabel { GtkMisc misc; + /*< private >*/ + gchar *label; gchar *pattern; guint jtype : 2; guint wrap : 1; - /*< private >*/ PangoLayout *layout; PangoAttrList *attrs; + + GtkLabelSelectionInfo *select_info; }; struct _GtkLabelClass @@ -95,6 +100,14 @@ void gtk_label_set_line_wrap (GtkLabel *label, guint gtk_label_parse_uline (GtkLabel *label, const gchar *string); +void gtk_label_set_selectable (GtkLabel *label, + gboolean setting); +gboolean gtk_label_get_selectable (GtkLabel *label); + +void gtk_label_select_region (GtkLabel *label, + gint start_offset, + gint end_offset); + #ifndef GTK_DISABLE_COMPAT_H # define gtk_label_set gtk_label_set_text #endif /* GTK_DISABLE_COMPAT_H */ |