Made moo_text_view_get_text() work for GtkTextView
parent
d209daba09
commit
480a8858e4
|
@ -1272,13 +1272,13 @@ moo_text_view_has_text (MooTextView *view)
|
|||
|
||||
|
||||
char *
|
||||
moo_text_view_get_text (MooTextView *view)
|
||||
moo_text_view_get_text (gpointer view)
|
||||
{
|
||||
GtkTextBuffer *buf;
|
||||
GtkTextIter start, end;
|
||||
char *text;
|
||||
|
||||
g_return_val_if_fail (MOO_IS_TEXT_VIEW (view), NULL);
|
||||
g_return_val_if_fail (GTK_IS_TEXT_VIEW (view), NULL);
|
||||
|
||||
buf = get_buffer (view);
|
||||
gtk_text_buffer_get_bounds (buf, &start, &end);
|
||||
|
|
|
@ -102,7 +102,7 @@ GtkWidget *moo_text_view_new (void);
|
|||
void moo_text_view_select_all (MooTextView *view);
|
||||
|
||||
char *moo_text_view_get_selection (gpointer view);
|
||||
char *moo_text_view_get_text (MooTextView *view);
|
||||
char *moo_text_view_get_text (gpointer view);
|
||||
gboolean moo_text_view_has_selection (MooTextView *view);
|
||||
gboolean moo_text_view_has_text (MooTextView *view);
|
||||
|
||||
|
|
Loading…
Reference in New Issue