diff --git a/plugins/ddb_misc_headerbar_GTK3/actiongroup.diff b/plugins/ddb_misc_headerbar_GTK3/actiongroup.diff new file mode 100644 index 0000000..cc1d62d --- /dev/null +++ b/plugins/ddb_misc_headerbar_GTK3/actiongroup.diff @@ -0,0 +1,28 @@ +diff --git a/src/headerbarui.c b/src/headerbarui.c +index 76f0bf2..e57614d 100644 +--- a/src/headerbarui.c ++++ b/src/headerbarui.c +@@ -1144,14 +1144,15 @@ refresh_undo_redo_menu () { + } + + static void init_refresh_undo_redo_menu () { +- GActionGroup *db_action_group = G_ACTION_GROUP(gtk_widget_get_action_group (headerbar, "db")); +- +- // Use the menu items +- refresh_undo_redo.undo_menu_item = lookup_widget (GTK_WIDGET(mainwin), "undo"); +- refresh_undo_redo.redo_menu_item = lookup_widget (GTK_WIDGET(mainwin), "redo"); +- +- refresh_undo_redo.undo_action = g_action_map_lookup_action (G_ACTION_MAP (db_action_group), "undo"); +- refresh_undo_redo.redo_action = g_action_map_lookup_action (G_ACTION_MAP (db_action_group), "redo"); ++// Disabled because of too high GTK requirement (3.16) ++// GActionGroup *db_action_group = G_ACTION_GROUP(gtk_widget_get_action_group (headerbar, "db")); ++// ++// // Use the menu items ++// refresh_undo_redo.undo_menu_item = lookup_widget (GTK_WIDGET(mainwin), "undo"); ++// refresh_undo_redo.redo_menu_item = lookup_widget (GTK_WIDGET(mainwin), "redo"); ++// ++// refresh_undo_redo.undo_action = g_action_map_lookup_action (G_ACTION_MAP (db_action_group), "undo"); ++// refresh_undo_redo.redo_action = g_action_map_lookup_action (G_ACTION_MAP (db_action_group), "redo"); + } + + static void diff --git a/plugins/ddb_misc_headerbar_GTK3/manifest.json b/plugins/ddb_misc_headerbar_GTK3/manifest.json index ff5c2b8..82d0955 100644 --- a/plugins/ddb_misc_headerbar_GTK3/manifest.json +++ b/plugins/ddb_misc_headerbar_GTK3/manifest.json @@ -4,7 +4,8 @@ url: "https://github.com/saivert/ddb_misc_headerbar_GTK3.git", patches: [ "build.diff", - "cast.diff" + "cast.diff", + "actiongroup.diff" ], }, make: {