[easytag/wip/application-window: 2/8] Pass the main window to actions as user data
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/application-window: 2/8] Pass the main window to actions as user data
- Date: Sun, 29 Dec 2013 21:02:45 +0000 (UTC)
commit 078237dc5d3bc3df4d39a2e6d1a28ca7e9f95fd9
Author: David King <amigadave amigadave com>
Date: Fri Dec 27 18:32:49 2013 +0000
Pass the main window to actions as user data
src/bar.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/bar.c b/src/bar.c
index d7c70c9..31ec607 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -401,15 +401,15 @@ Create_UI (GtkWindow *window, GtkWidget **ppmenubar, GtkWidget **pptoolbar)
/* UI Management */
ActionGroup = gtk_action_group_new("actions");
gtk_action_group_set_translation_domain (ActionGroup, GETTEXT_PACKAGE);
- gtk_action_group_add_actions(ActionGroup, ActionEntries, num_menu_entries, NULL);
- gtk_action_group_add_toggle_actions(ActionGroup, ToggleActionEntries, num_toggle_entries, NULL);
+ gtk_action_group_add_actions(ActionGroup, ActionEntries, num_menu_entries, window);
+ gtk_action_group_add_toggle_actions(ActionGroup, ToggleActionEntries, num_toggle_entries, window);
gtk_action_group_add_radio_actions (ActionGroup, view_mode_entries,
n_view_mode_entries, 0,
- Action_Select_Browser_Style, NULL);
+ Action_Select_Browser_Style, window);
gtk_action_group_add_radio_actions (ActionGroup, scanner_mode_entries,
n_scanner_mode_entries, 0,
G_CALLBACK (et_on_action_select_scan_mode),
- NULL);
+ window);
UIManager = gtk_ui_manager_new();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]