diff options
author | Glynn Foster <glynn.foster@sun.com> | 2004-04-28 12:06:02 +0000 |
---|---|---|
committer | Glynn Foster <gman@src.gnome.org> | 2004-04-28 12:06:02 +0000 |
commit | 02955ce70f7fa58da88dc8d66e07520afb94f642 (patch) | |
tree | 66e1ac639a4bc20193c904c008c447386da5af71 /src/tree.c | |
parent | 5f7b750f3972de1106e593922374a0b75c2dd5ea (diff) |
Fix the list dialog not being able to handle --text to change the text. It
2004-04-29 Glynn Foster <glynn.foster@sun.com>
* src/main.c, src/tree.c: Fix the list dialog not being
able to handle --text to change the text. It was also
intentional but must have fallen through the gaps.
* data/zenity.1: Update
* help/C/zenity.xml: Update.
Diffstat (limited to 'src/tree.c')
-rw-r--r-- | src/tree.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -269,6 +269,7 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data) { GtkWidget *dialog; GtkWidget *tree_view; + GtkWidget *text; GtkTreeViewColumn *column; GtkListStore *model; GType *column_types; @@ -303,6 +304,11 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data) if (data->dialog_title) gtk_window_set_title (GTK_WINDOW (dialog), data->dialog_title); + text = glade_xml_get_widget (glade_dialog, "zenity_tree_text"); + + if (tree_data->dialog_text) + gtk_label_set_text (GTK_LABEL (text), tree_data->dialog_text); + if (data->window_icon) zenity_util_set_window_icon (dialog, data->window_icon); else |