summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Newman <MikeGTN@src.gnome.org>2003-01-21 08:00:27 +0000
committerMike Newman <MikeGTN@src.gnome.org>2003-01-21 08:00:27 +0000
commit818872f171108b910344b3d352c6f7d38e80fd97 (patch)
treeff7a47c2fb09b58a0f1cc0e6f5c936b9b94e1c00 /src
parentNew traditional Chinese translation. (diff)
downloadzenity-818872f171108b910344b3d352c6f7d38e80fd97.tar.gz
zenity-818872f171108b910344b3d352c6f7d38e80fd97.tar.bz2
zenity-818872f171108b910344b3d352c6f7d38e80fd97.zip
Fixed a bug I introduced! Ensure that an editable --text-info dialog gets
a buffer associated with it, so we can get the output even when we don't start out with a --filename.
Diffstat (limited to 'src')
-rw-r--r--src/text.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/text.c b/src/text.c
index 7601fd98..4efa4bf4 100644
--- a/src/text.c
+++ b/src/text.c
@@ -64,8 +64,7 @@ zenity_text (ZenityData *data, ZenityTextData *text_data)
text_buffer = gtk_text_buffer_new (NULL);
text_view = glade_xml_get_widget (glade_dialog, "zenity_text_view");
- if (zenity_util_fill_file_buffer (text_buffer, text_data->uri))
- gtk_text_view_set_buffer (GTK_TEXT_VIEW (text_view), text_buffer);
+ gtk_text_view_set_buffer (GTK_TEXT_VIEW (text_view), text_buffer);
gtk_text_view_set_editable (GTK_TEXT_VIEW(text_view), text_data->editable);
if (text_data->editable) {
zen_text_data->buffer = text_buffer;
bgstack15