-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove undo/redo update code from headerbar, to make it buildable
- Loading branch information
1 parent
f468079
commit 05bfea4
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters