summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-01-18 18:30:52 +0000
committerGlynn Foster <gman@src.gnome.org>2003-01-18 18:30:52 +0000
commitc41421c043ec92da0936ca8005f3e7841abd19cd (patch)
treee7fc3ecac448c82a1609a6637f696819cef35c61 /src
parentOnly some examples and some screenshots and we're mostly done for a first (diff)
downloadzenity-c41421c043ec92da0936ca8005f3e7841abd19cd.tar.gz
zenity-c41421c043ec92da0936ca8005f3e7841abd19cd.tar.bz2
zenity-c41421c043ec92da0936ca8005f3e7841abd19cd.zip
Add some screenshots for the help documentation.
2003-01-18 Glynn Foster <glynn.foster@sun.com> * help/C/figures/zenity-calendar-screenshot.png, help/C/figures/zenity-entry-screenshot.png, help/C/figures/zenity-error-screenshot.png, help/C/figures/zenity-fileselection-screenshot.png, help/C/figures/zenity-information-screenshot.png, help/C/figures/zenity-list-screenshot.png, help/C/figures/zenity-progress-screenshot.png, help/C/figures/zenity-question-screenshot.png, help/C/figures/zenity-text-screenshot.png, help/C/figures/zenity-warning-screenshot.png: Add some screenshots for the help documentation. * src/entry.c, src/msg.c: Don't set the text if it's NULL.
Diffstat (limited to 'src')
-rw-r--r--src/entry.c2
-rw-r--r--src/msg.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/entry.c b/src/entry.c
index 81fc2c5e..3578788e 100644
--- a/src/entry.c
+++ b/src/entry.c
@@ -56,7 +56,7 @@ zenity_entry (ZenityData *data, ZenityEntryData *entry_data)
if (data->window_icon)
zenity_util_set_window_icon (dialog, data->window_icon);
else
- /* FIXME: Come up with a nice default window icon */;
+ zenity_util_set_window_icon (dialog, ZENITY_IMAGE_FULLPATH ("zenity-entry.png"));
text = glade_xml_get_widget (glade_dialog, "zenity_entry_text");
diff --git a/src/msg.c b/src/msg.c
index cc1f0924..5c73af0b 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -103,8 +103,9 @@ zenity_msg (ZenityData *data, ZenityMsgData *msg_data)
break;
}
}
-
- gtk_label_set_text (GTK_LABEL (text), msg_data->dialog_text);
+
+ if (msg_data->dialog_text)
+ gtk_label_set_text (GTK_LABEL (text), msg_data->dialog_text);
gtk_widget_show (dialog);
gtk_main ();
bgstack15