summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-01-18 13:35:13 +0000
committerGlynn Foster <gman@src.gnome.org>2003-01-18 13:35:13 +0000
commitf182d9f7fce8e9a57c03eb71f4467894394d0104 (patch)
treed937f36d601cf7aa611818f954268a3fdd8700ee /src
parentFix a segfault in the --list if no data is supplied to populate (diff)
downloadzenity-f182d9f7fce8e9a57c03eb71f4467894394d0104.tar.gz
zenity-f182d9f7fce8e9a57c03eb71f4467894394d0104.tar.bz2
zenity-f182d9f7fce8e9a57c03eb71f4467894394d0104.zip
Some new window icons.
2003-01-18 Glynn Foster <glynn.foster@sun.com> * data/Makefile.am, data/zenity-calendar.png, data/zenity-entry.png, data/zenity-progress.png, data/zenity-text.png: Some new window icons. * src/text.c: Fix crash where the GladeXML ref was getting unref'd before we wanted to use it. * src/main.c: Fix up commandline parsing a little, although we should really add the parsing options for gtk+. * src/zenity.glade: Give some saner defaults. * THANKS, src/about.c: Update for all the people I stole icons and code from. * TODO: Update accordingly.
Diffstat (limited to 'src')
-rw-r--r--src/about.c6
-rw-r--r--src/main.c7
-rw-r--r--src/text.c9
-rw-r--r--src/zenity.glade4
4 files changed, 17 insertions, 9 deletions
diff --git a/src/about.c b/src/about.c
index 3818c2c1..c121cdc5 100644
--- a/src/about.c
+++ b/src/about.c
@@ -37,8 +37,14 @@ static GtkWidget *cred_dialog;
static void zenity_about_dialog_response (GtkWidget *widget, int response, gpointer data);
static const gchar *author_credits[] = {
+ "Jonathan Blanford <jrb@redhat.com>",
+ "Anders Carlsson <andersca@gnu.org>",
"Glynn Foster <glynn.foster@sun.com>",
+ "James Henstridge <james@daa.com.au>",
"Mike Newman <mike@gtnorthern.demon.co.uk>",
+ "Havoc Pennington <hp@redhat.com>",
+ "Kristian Rietveld <kris@gtk.org>",
+ "Jakub Steiner <jimmac@ximian.com>",
NULL
};
diff --git a/src/main.c b/src/main.c
index bcd3208d..58bb13e7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -812,6 +812,9 @@ main (gint argc, gchar **argv) {
/*nothing*/;
if (nextopt != -1) {
+ /* FIXME : We should probably handle --display, or at least maybe load some of the gtk+
+ * commandline options
+ */
g_printerr (_("%s in an invalid option for this dialog\n"), poptBadOption (ctx, 0));
zenity_free_parsing_options ();
exit (-1);
@@ -1220,8 +1223,6 @@ void zenity_parse_options_callback (poptContext ctx,
exit (0);
break;
default:
- g_warning ("Invalid option %s", arg);
- zenity_free_parsing_options ();
- exit (-1);
+ break;
}
}
diff --git a/src/text.c b/src/text.c
index ead35ec2..fe9747cb 100644
--- a/src/text.c
+++ b/src/text.c
@@ -46,9 +46,6 @@ zenity_text (ZenityData *data, ZenityTextData *text_data)
dialog = glade_xml_get_widget (glade_dialog, "zenity_text_dialog");
- if (glade_dialog)
- g_object_unref (glade_dialog);
-
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (zenity_text_dialog_response), data);
@@ -58,7 +55,7 @@ zenity_text (ZenityData *data, ZenityTextData *text_data)
if (data->window_icon)
zenity_util_set_window_icon (dialog, data->window_icon);
else
- ;
+ zenity_util_set_window_icon (dialog, ZENITY_IMAGE_FULLPATH ("zenity-text.png"));
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
@@ -68,6 +65,10 @@ zenity_text (ZenityData *data, ZenityTextData *text_data)
gtk_text_view_set_buffer (GTK_TEXT_VIEW (text_view), text_buffer);
gtk_widget_show (dialog);
+
+ if (glade_dialog)
+ g_object_unref (glade_dialog);
+
gtk_main ();
}
diff --git a/src/zenity.glade b/src/zenity.glade
index 880ec5b7..3ea0bab4 100644
--- a/src/zenity.glade
+++ b/src/zenity.glade
@@ -529,7 +529,7 @@
<widget class="GtkDialog" id="zenity_text_dialog">
<property name="visible">True</property>
- <property name="title" translatable="yes">zenity_text_dialog</property>
+ <property name="title" translatable="yes">Text View</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_CENTER</property>
<property name="modal">False</property>
@@ -601,7 +601,7 @@
<property name="left_margin">2</property>
<property name="right_margin">2</property>
<property name="indent">0</property>
- <property name="text" translatable="yes">zenity_text_view</property>
+ <property name="text" translatable="yes"></property>
</widget>
</child>
</widget>
bgstack15