summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Newman <MikeGTN@src.gnome.org>2003-01-21 08:05:38 +0000
committerMike Newman <MikeGTN@src.gnome.org>2003-01-21 08:05:38 +0000
commit0629d7f2275840814c732d8764935bc1fd014fe2 (patch)
tree51d3235ad22e06fbe6ee164beca685e14197b604 /src
parentFixed a bug I introduced! Ensure that an editable --text-info dialog gets (diff)
downloadzenity-0629d7f2275840814c732d8764935bc1fd014fe2.tar.gz
zenity-0629d7f2275840814c732d8764935bc1fd014fe2.tar.bz2
zenity-0629d7f2275840814c732d8764935bc1fd014fe2.zip
Sigh - half a job done as usual :)
Diffstat (limited to 'src')
-rw-r--r--src/text.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/text.c b/src/text.c
index 4efa4bf4..b51f93b1 100644
--- a/src/text.c
+++ b/src/text.c
@@ -66,6 +66,10 @@ zenity_text (ZenityData *data, ZenityTextData *text_data)
text_view = glade_xml_get_widget (glade_dialog, "zenity_text_view");
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->uri) {
+ zenity_util_fill_file_buffer (text_buffer, text_data->uri);
+ }
+
if (text_data->editable) {
zen_text_data->buffer = text_buffer;
}
bgstack15