summaryrefslogtreecommitdiff
path: root/gtk/gtktextbuffer.h
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2005-10-07 03:38:57 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-10-07 03:38:57 +0000
commitb863d240896e978589356c46a32fef7fbbbad122 (patch)
treec30631f04d78e18275cb5fe9c154ceffcd23f777 /gtk/gtktextbuffer.h
parent748c99f0ca3834619f3db62c507b42cf70ca68e5 (diff)
downloadgtk+-b863d240896e978589356c46a32fef7fbbbad122.tar.gz
Add a has-selection property
Diffstat (limited to 'gtk/gtktextbuffer.h')
-rw-r--r--gtk/gtktextbuffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtktextbuffer.h b/gtk/gtktextbuffer.h
index daac40831c..04aac94f0a 100644
--- a/gtk/gtktextbuffer.h
+++ b/gtk/gtktextbuffer.h
@@ -70,6 +70,8 @@ struct _GtkTextBuffer
/* Whether the buffer has been modified since last save */
guint modified : 1;
+
+ guint has_selection : 1;
};
struct _GtkTextBufferClass
@@ -337,6 +339,8 @@ gboolean gtk_text_buffer_get_modified (GtkTextBuffer *buffer);
void gtk_text_buffer_set_modified (GtkTextBuffer *buffer,
gboolean setting);
+gboolean gtk_text_buffer_get_has_selection (GtkTextBuffer *buffer);
+
void gtk_text_buffer_add_selection_clipboard (GtkTextBuffer *buffer,
GtkClipboard *clipboard);
void gtk_text_buffer_remove_selection_clipboard (GtkTextBuffer *buffer,