shithub: puzzles

Download patch

ref: 07906104a2a67221913aebc5f0a5c1e00f3869d9
parent: 2c1b00086d80987e830e3de5c9e9b334845951a6
author: Simon Tatham <anakin@pobox.com>
date: Sat Oct 3 08:28:00 EDT 2015

GTK 3 prep: use gtk_radio_menu_item_get_group().

Replaces the previous deprecated spelling. We now build cleanly with
-DGTK_DISABLE_DEPRECATED.

--- a/gtk.c
+++ b/gtk.c
@@ -2299,7 +2299,7 @@
 	    menuitem =
 		gtk_radio_menu_item_new_with_label(fe->preset_radio, name);
 	    fe->preset_radio =
-		gtk_radio_menu_item_group(GTK_RADIO_MENU_ITEM(menuitem));
+		gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(menuitem));
 	    fe->n_preset_menu_items++;
             gtk_container_add(GTK_CONTAINER(submenu), menuitem);
             g_object_set_data(G_OBJECT(menuitem), "user-data", params);
@@ -2313,7 +2313,7 @@
 		gtk_radio_menu_item_new_with_label(fe->preset_radio,
 						   "Custom...");
 	    fe->preset_radio =
-		gtk_radio_menu_item_group(GTK_RADIO_MENU_ITEM(menuitem));
+		gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(menuitem));
             gtk_container_add(GTK_CONTAINER(submenu), menuitem);
             g_object_set_data(G_OBJECT(menuitem), "user-data",
                               GINT_TO_POINTER(CFG_SETTINGS));