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
This commit is contained in:
Tor Lillqvist
2008-03-20 03:21:41 +00:00
committed by Tor Lillqvist
parent aae6c90fdf
commit 01d372422d
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
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().
2008-03-20 Tor Lillqvist <tml@novell.com>
Bug 314084 - GTK+ dialogs should not be placed partially offscreen

View File

@@ -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;
}