Sigh - half a job done as usual :)
This commit is contained in:
parent
818872f171
commit
0629d7f227
@ -66,6 +66,10 @@ zenity_text (ZenityData *data, ZenityTextData *text_data)
|
|||||||
text_view = glade_xml_get_widget (glade_dialog, "zenity_text_view");
|
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_buffer (GTK_TEXT_VIEW (text_view), text_buffer);
|
||||||
gtk_text_view_set_editable (GTK_TEXT_VIEW(text_view), text_data->editable);
|
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) {
|
if (text_data->editable) {
|
||||||
zen_text_data->buffer = text_buffer;
|
zen_text_data->buffer = text_buffer;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user