summaryrefslogtreecommitdiff
path: root/src/msg.c
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-01-06 21:09:22 +0000
committerGlynn Foster <gman@src.gnome.org>2003-01-06 21:09:22 +0000
commit8924d5c401829efc59380fda8823bedca5994bcb (patch)
tree9ce3f220f79aa3f449ffcb98f2b11631812dd769 /src/msg.c
parentLife is pleasant. Death is peaceful. It's the transition that's troublesome. (diff)
downloadzenity-8924d5c401829efc59380fda8823bedca5994bcb.tar.gz
zenity-8924d5c401829efc59380fda8823bedca5994bcb.tar.bz2
zenity-8924d5c401829efc59380fda8823bedca5994bcb.zip
I love featuritis. Instead of fixing stuff so it actually works, I add
2003-01-06 Glynn Foster <glynn.foster@sun.com> * src/main.c, src/msg.c, src/zenity.glade, src/zenity.h: I love featuritis. Instead of fixing stuff so it actually works, I add more stuff. Add support for info dialog.
Diffstat (limited to 'src/msg.c')
-rw-r--r--src/msg.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/msg.c b/src/msg.c
index a8e5c2de..5b2cba96 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -52,6 +52,12 @@ int zenity_msg (ZenityData *data, ZenityMsgData *msg_data)
dialog = glade_xml_get_widget (glade_dialog, "zenity_error_dialog");
text = glade_xml_get_widget (glade_dialog, "zenity_error_text");
break;
+
+ case ZENITY_MSG_INFO:
+ glade_dialog = zenity_util_load_glade_file ("zenity_info_dialog");
+ dialog = glade_xml_get_widget (glade_dialog, "zenity_info_dialog");
+ text = glade_xml_get_widget (glade_dialog, "zenity_info_text");
+ break;
default:
g_assert_not_reached ();
@@ -81,6 +87,9 @@ int zenity_msg (ZenityData *data, ZenityMsgData *msg_data)
case ZENITY_MSG_ERROR:
zenity_util_set_window_icon_from_stock (dialog, GTK_STOCK_DIALOG_ERROR);
break;
+ case ZENITY_MSG_INFO:
+ zenity_util_set_window_icon_from_stock (dialog, GTK_STOCK_DIALOG_INFO);
+ break;
default:
break;
}
bgstack15