]> Pileus Git - ~andy/gtk/commitdiff
Initially activate the JUSTIFY_RIGHT group member to test the fix for
authorMatthias Clasen <maclas@gmx.de>
Mon, 22 Sep 2003 08:54:23 +0000 (08:54 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 22 Sep 2003 08:54:23 +0000 (08:54 +0000)
2003-09-22  Matthias Clasen  <maclas@gmx.de>

* tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
group member to test the fix for #122904.

* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
Add the action to the group before activating it, otherwise we
may end up with multiple active group members.  (#122904, Marco
Pesenti Gritti)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkactiongroup.c
tests/testmerge.c

index fb03cd1d99add6c1763f9763ec6f8d76d857142a..935a6f64f0c6020499dcf72fb8e7b74767d01839 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2003-09-22  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
+       group member to test the fix for #122904.
+
+       * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
+       Add the action to the group before activating it, otherwise we
+       may end up with multiple active group members.  (#122904, Marco
+       Pesenti Gritti)
+
 2003-09-21  Matthias Clasen  <maclas@gmx.de>
 
        Changes to make cross-process merging feasible:
index fb03cd1d99add6c1763f9763ec6f8d76d857142a..935a6f64f0c6020499dcf72fb8e7b74767d01839 100644 (file)
@@ -1,3 +1,13 @@
+2003-09-22  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
+       group member to test the fix for #122904.
+
+       * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
+       Add the action to the group before activating it, otherwise we
+       may end up with multiple active group members.  (#122904, Marco
+       Pesenti Gritti)
+
 2003-09-21  Matthias Clasen  <maclas@gmx.de>
 
        Changes to make cross-process merging feasible:
index fb03cd1d99add6c1763f9763ec6f8d76d857142a..935a6f64f0c6020499dcf72fb8e7b74767d01839 100644 (file)
@@ -1,3 +1,13 @@
+2003-09-22  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
+       group member to test the fix for #122904.
+
+       * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
+       Add the action to the group before activating it, otherwise we
+       may end up with multiple active group members.  (#122904, Marco
+       Pesenti Gritti)
+
 2003-09-21  Matthias Clasen  <maclas@gmx.de>
 
        Changes to make cross-process merging feasible:
index fb03cd1d99add6c1763f9763ec6f8d76d857142a..935a6f64f0c6020499dcf72fb8e7b74767d01839 100644 (file)
@@ -1,3 +1,13 @@
+2003-09-22  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
+       group member to test the fix for #122904.
+
+       * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
+       Add the action to the group before activating it, otherwise we
+       may end up with multiple active group members.  (#122904, Marco
+       Pesenti Gritti)
+
 2003-09-21  Matthias Clasen  <maclas@gmx.de>
 
        Changes to make cross-process merging feasible:
index fb03cd1d99add6c1763f9763ec6f8d76d857142a..935a6f64f0c6020499dcf72fb8e7b74767d01839 100644 (file)
@@ -1,3 +1,13 @@
+2003-09-22  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
+       group member to test the fix for #122904.
+
+       * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
+       Add the action to the group before activating it, otherwise we
+       may end up with multiple active group members.  (#122904, Marco
+       Pesenti Gritti)
+
 2003-09-21  Matthias Clasen  <maclas@gmx.de>
 
        Changes to make cross-process merging feasible:
index f09e2e4ae96668b727a31e902655d5e0ec66082f..f58a44273e500196bcafaf4cf852a7c9858e5304 100644 (file)
@@ -597,14 +597,15 @@ gtk_action_group_add_radio_actions_full (GtkActionGroup      *action_group,
       if (i == 0) 
        first_action = action;
 
-      if (value == entries[i].value)
-       gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), TRUE);
-      
       gtk_radio_action_set_group (GTK_RADIO_ACTION (action), group);
       group = gtk_radio_action_get_group (GTK_RADIO_ACTION (action));
 
+      if (value == entries[i].value)
+       gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), TRUE);
+      
       /* set the accel path for the menu item */
-      accel_path = g_strconcat ("<Actions>/", action_group->private_data->name, "/",
+      accel_path = g_strconcat ("<Actions>/", 
+                               action_group->private_data->name, "/",
                                entries[i].name, NULL);
       if (entries[i].accelerator)
        {
index c79090b20d5b90f2a64bde5a1f29cc5fde996ab4..ea794ddfa7934bb8b84348863e2d5e09cf53d7f9 100644 (file)
@@ -462,7 +462,7 @@ main (int argc, char **argv)
                                       NULL);
   gtk_action_group_add_radio_actions (action_group, 
                                      radio_entries, n_radio_entries, 
-                                     JUSTIFY_LEFT,
+                                     JUSTIFY_RIGHT,
                                      G_CALLBACK (radio_action_changed), NULL);
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
@@ -556,6 +556,8 @@ main (int argc, char **argv)
   gtk_widget_show_all (window);
   gtk_main ();
 
+  g_object_unref (action_group);
+  g_object_unref (merge);
 
   return 0;
 }