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.
This commit is contained in:
parent
3b52067094
commit
818872f171
@ -1,3 +1,8 @@
|
|||||||
|
2003-01-21 Mike Newman <mike@gtnorthern.demon.co.uk>
|
||||||
|
|
||||||
|
* src/text.c: fix a bug where a textbuffer was only being
|
||||||
|
associated with the textview if we had a filename to read in.
|
||||||
|
|
||||||
2003-01-21 Abel Cheung <maddog@linux.org.hk>
|
2003-01-21 Abel Cheung <maddog@linux.org.hk>
|
||||||
|
|
||||||
* configure.in: Added "zh_TW" (traditional Chinese) to ALL_LINGUAS.
|
* configure.in: Added "zh_TW" (traditional Chinese) to ALL_LINGUAS.
|
||||||
|
@ -64,7 +64,6 @@ zenity_text (ZenityData *data, ZenityTextData *text_data)
|
|||||||
|
|
||||||
text_buffer = gtk_text_buffer_new (NULL);
|
text_buffer = gtk_text_buffer_new (NULL);
|
||||||
text_view = glade_xml_get_widget (glade_dialog, "zenity_text_view");
|
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);
|
gtk_text_view_set_editable (GTK_TEXT_VIEW(text_view), text_data->editable);
|
||||||
if (text_data->editable) {
|
if (text_data->editable) {
|
||||||
|
Reference in New Issue
Block a user