summaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2004-04-28 12:06:02 +0000
committerGlynn Foster <gman@src.gnome.org>2004-04-28 12:06:02 +0000
commit02955ce70f7fa58da88dc8d66e07520afb94f642 (patch)
tree66e1ac639a4bc20193c904c008c447386da5af71 /src/tree.c
parent5f7b750f3972de1106e593922374a0b75c2dd5ea (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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c
index a1c1bb9..bc1cc1c 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -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