Use g_return_val_if_fail in this non-void function. (gdk_init_check):

* gdk/gdk.c (gdk_display_open_default_libgtk_only): Use
	g_return_val_if_fail in this non-void function.
	(gdk_init_check): Remove unused variable.
This commit is contained in:
Matthias Clasen 2002-11-07 21:05:52 +00:00
parent 2406bea2b4
commit 1751a74916
7 changed files with 37 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-11-07 Matthias Clasen <maclas@gmx.de>
* gdk/gdk.c (gdk_display_open_default_libgtk_only): Use
g_return_val_if_fail in this non-void function.
(gdk_init_check): Remove unused variable.
Thu Nov 7 15:42:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_get_font_description):

View File

@ -1,3 +1,9 @@
2002-11-07 Matthias Clasen <maclas@gmx.de>
* gdk/gdk.c (gdk_display_open_default_libgtk_only): Use
g_return_val_if_fail in this non-void function.
(gdk_init_check): Remove unused variable.
Thu Nov 7 15:42:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_get_font_description):

View File

@ -1,3 +1,9 @@
2002-11-07 Matthias Clasen <maclas@gmx.de>
* gdk/gdk.c (gdk_display_open_default_libgtk_only): Use
g_return_val_if_fail in this non-void function.
(gdk_init_check): Remove unused variable.
Thu Nov 7 15:42:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_get_font_description):

View File

@ -1,3 +1,9 @@
2002-11-07 Matthias Clasen <maclas@gmx.de>
* gdk/gdk.c (gdk_display_open_default_libgtk_only): Use
g_return_val_if_fail in this non-void function.
(gdk_init_check): Remove unused variable.
Thu Nov 7 15:42:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_get_font_description):

View File

@ -1,3 +1,9 @@
2002-11-07 Matthias Clasen <maclas@gmx.de>
* gdk/gdk.c (gdk_display_open_default_libgtk_only): Use
g_return_val_if_fail in this non-void function.
(gdk_init_check): Remove unused variable.
Thu Nov 7 15:42:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_get_font_description):

View File

@ -1,3 +1,9 @@
2002-11-07 Matthias Clasen <maclas@gmx.de>
* gdk/gdk.c (gdk_display_open_default_libgtk_only): Use
g_return_val_if_fail in this non-void function.
(gdk_init_check): Remove unused variable.
Thu Nov 7 15:42:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_get_font_description):

View File

@ -389,7 +389,7 @@ gdk_display_open_default_libgtk_only (void)
{
GdkDisplay *display;
g_return_if_fail (gdk_initialized);
g_return_val_if_fail (gdk_initialized, NULL);
display = gdk_display_get_default ();
if (display)
@ -438,8 +438,6 @@ gboolean
gdk_init_check (int *argc,
char ***argv)
{
GdkDisplay *display;
gdk_parse_args (argc, argv);
return gdk_display_open_default_libgtk_only () != NULL;