Skip to content

Commit

Permalink
remove undo/redo update code from headerbar, to make it buildable
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy-Yakovenko committed Jul 15, 2024
1 parent f468079 commit 05bfea4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions plugins/ddb_misc_headerbar_GTK3/actiongroup.diff
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion plugins/ddb_misc_headerbar_GTK3/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
url: "https://github.com/saivert/ddb_misc_headerbar_GTK3.git",
patches: [
"build.diff",
"cast.diff"
"cast.diff",
"actiongroup.diff"
],
},
make: {
Expand Down

0 comments on commit 05bfea4

Please sign in to comment.