diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-12-11 02:44:10 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-12-11 02:44:10 +0800 |
commit | d0a541a6cb797ecc289e3a8c72fe527b11bcbb35 (patch) | |
tree | eb0ad458634b51803b99495fd3d89f0a33e1fba6 /src/ephy-tabs-menu.c | |
parent | 90c8f3beae1b12495402449f01b5b510a1388bba (diff) | |
download | gsoc2013-epiphany-d0a541a6cb797ecc289e3a8c72fe527b11bcbb35.tar gsoc2013-epiphany-d0a541a6cb797ecc289e3a8c72fe527b11bcbb35.tar.gz gsoc2013-epiphany-d0a541a6cb797ecc289e3a8c72fe527b11bcbb35.tar.bz2 gsoc2013-epiphany-d0a541a6cb797ecc289e3a8c72fe527b11bcbb35.tar.lz gsoc2013-epiphany-d0a541a6cb797ecc289e3a8c72fe527b11bcbb35.tar.xz gsoc2013-epiphany-d0a541a6cb797ecc289e3a8c72fe527b11bcbb35.tar.zst gsoc2013-epiphany-d0a541a6cb797ecc289e3a8c72fe527b11bcbb35.zip |
Make print dialogue spacing HIG-compliant.
2003-12-10 Christian Persch <chpe@cvs.gnome.org>
* data/glade/print.glade:
Make print dialogue spacing HIG-compliant.
* src/ephy-tabs-menu.c: (tab_set_action_accelerator),
(ephy_tabs_menu_update):
Restore tabs menu shortcut keys ALT-1 .. ALT-0 for the first
ten tabs; they somehow got lost in the Egg->Gtk port.
Diffstat (limited to 'src/ephy-tabs-menu.c')
-rw-r--r-- | src/ephy-tabs-menu.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c index 9b7c6c6fc..fc1518d61 100644 --- a/src/ephy-tabs-menu.c +++ b/src/ephy-tabs-menu.c @@ -247,6 +247,7 @@ tab_set_action_accelerator (GtkActionGroup *action_group, /* set the accel path for the menu item */ accel_path = g_strconcat ("<Actions>/", action_group_name, "/", action_name, NULL); + gtk_action_set_accel_path (action, accel_path); /* Only the first ten tabs get accelerators starting from 1 through 0 */ if (tab_number < 10) @@ -260,12 +261,13 @@ tab_set_action_accelerator (GtkActionGroup *action_group, if (accel_key != 0) { - gtk_action_set_accel_path (action, accel_path); + gtk_accel_map_change_entry (accel_path, accel_key, + accel_mods, TRUE); } } else { - gtk_action_set_accel_path (action, accel_path); + gtk_accel_map_change_entry (accel_path, 0, 0, TRUE); } } @@ -308,7 +310,7 @@ ephy_tabs_menu_update (EphyTabsMenu *menu) action_name = gtk_action_get_name (action); name = g_strdup_printf ("%sMenu", action_name); - tab_set_action_accelerator (p->action_group, action, i); + tab_set_action_accelerator (p->action_group, action, i++); gtk_ui_manager_add_ui (merge, p->ui_id, "/menubar/TabsMenu/TabsOpen", |