Commit a64ce012 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't use first_action without initializing it if n_entries is 0.

Fri Dec 26 23:24:35 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
	Don't use first_action without initializing it if n_entries is 0.
parent 11198a1d
Fri Dec 26 23:24:35 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
Don't use first_action without initializing it if n_entries is 0.
Thu Dec 25 00:26:34 2003 Matthias Clasen <maclas@gmx.de> Thu Dec 25 00:26:34 2003 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size): * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
......
Fri Dec 26 23:24:35 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
Don't use first_action without initializing it if n_entries is 0.
Thu Dec 25 00:26:34 2003 Matthias Clasen <maclas@gmx.de> Thu Dec 25 00:26:34 2003 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size): * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
......
Fri Dec 26 23:24:35 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
Don't use first_action without initializing it if n_entries is 0.
Thu Dec 25 00:26:34 2003 Matthias Clasen <maclas@gmx.de> Thu Dec 25 00:26:34 2003 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size): * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
......
Fri Dec 26 23:24:35 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
Don't use first_action without initializing it if n_entries is 0.
Thu Dec 25 00:26:34 2003 Matthias Clasen <maclas@gmx.de> Thu Dec 25 00:26:34 2003 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size): * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
......
Fri Dec 26 23:24:35 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
Don't use first_action without initializing it if n_entries is 0.
Thu Dec 25 00:26:34 2003 Matthias Clasen <maclas@gmx.de> Thu Dec 25 00:26:34 2003 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size): * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
......
...@@ -630,7 +630,7 @@ gtk_action_group_add_radio_actions_full (GtkActionGroup *action_group, ...@@ -630,7 +630,7 @@ gtk_action_group_add_radio_actions_full (GtkActionGroup *action_group,
GtkTranslateFunc translate_func; GtkTranslateFunc translate_func;
gpointer translate_data; gpointer translate_data;
GSList *group = NULL; GSList *group = NULL;
GtkAction *first_action; GtkAction *first_action = NULL;
g_return_if_fail (GTK_IS_ACTION_GROUP (action_group)); g_return_if_fail (GTK_IS_ACTION_GROUP (action_group));
...@@ -694,7 +694,7 @@ gtk_action_group_add_radio_actions_full (GtkActionGroup *action_group, ...@@ -694,7 +694,7 @@ gtk_action_group_add_radio_actions_full (GtkActionGroup *action_group,
g_object_unref (action); g_object_unref (action);
} }
if (on_change) if (on_change && first_action)
g_signal_connect_data (first_action, "changed", g_signal_connect_data (first_action, "changed",
on_change, user_data, on_change, user_data,
(GClosureNotify)destroy, 0); (GClosureNotify)destroy, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment