summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 81fc2c5..3578788 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 cc1f092..5c73af0 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 ();