diff options
author | Tor Lillqvist <tml@novell.com> | 2008-03-20 03:21:41 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2008-03-20 03:21:41 +0000 |
commit | 01d372422decf27834bf1729b600b1be0e20b97b (patch) | |
tree | e5921ec9421684f94aa4e49599e09b5f739a9dbc /tests/testfilechooserbutton.c | |
parent | aae6c90fdf9b6c1af1b0294d812910dfe135ec6f (diff) | |
download | gtk+-01d372422decf27834bf1729b600b1be0e20b97b.tar.gz |
Don't pass NULL for %s to g_message(). (main): Drop unnecessary call to
2008-03-20 Tor Lillqvist <tml@novell.com>
* tests/testfilechooserbutton.c (chooser_update_preview_cb): Don't
pass NULL for %s to g_message().
(main): Drop unnecessary call to gtk_widget_destroy().
svn path=/trunk/; revision=19908
Diffstat (limited to 'tests/testfilechooserbutton.c')
-rw-r--r-- | tests/testfilechooserbutton.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/testfilechooserbutton.c b/tests/testfilechooserbutton.c index 11d7fea78c..f1c1ed3360 100644 --- a/tests/testfilechooserbutton.c +++ b/tests/testfilechooserbutton.c @@ -237,9 +237,12 @@ chooser_update_preview_cb (GtkFileChooser *chooser, gchar *filename; filename = gtk_file_chooser_get_preview_uri (chooser); - g_message ("%s::update-preview\n\tPreview Filename: `%s'\nDone.\n", - G_OBJECT_TYPE_NAME (chooser), filename); - g_free (filename); + if (filename != NULL) + { + g_message ("%s::update-preview\n\tPreview Filename: `%s'\nDone.\n", + G_OBJECT_TYPE_NAME (chooser), filename); + g_free (filename); + } } @@ -358,7 +361,5 @@ main (int argc, gtk_main (); - gtk_widget_destroy (win); - return 0; } |