Made moo_text_view_get_text() work for GtkTextView

master
Yevgen Muntyan 2006-08-16 20:25:58 -05:00
parent d209daba09
commit 480a8858e4
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);