]> spindle.queued.net Git - midori/commitdiff
Draw radio action popup menu items as radio items
authorChristian Dywan <christian@twotoasts.de>
Mon, 22 Jun 2009 21:03:59 +0000 (23:03 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 22 Jun 2009 21:03:59 +0000 (23:03 +0200)
midori/sokoke.c

index f3bab36c35f7afa4b8392a6d4ddf9b0d85a71c94..c65918bd7938e40c8d8db2f89609b0cbb01709f7 100644 (file)
@@ -758,6 +758,9 @@ sokoke_action_create_popup_menu_item (GtkAction* action)
         menuitem = gtk_check_menu_item_new_with_mnemonic (label);
         gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menuitem),
             gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)));
+        if (GTK_IS_RADIO_ACTION (action))
+            gtk_check_menu_item_set_draw_as_radio (GTK_CHECK_MENU_ITEM (menuitem),
+                                                   TRUE);
     }
     else if (stock_id)
     {