[epiphany] ephy-header-bar: Remove unused ShortcutController
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-header-bar: Remove unused ShortcutController
- Date: Tue, 21 Apr 2020 15:41:52 +0000 (UTC)
commit ca675d8007d3d295a726a82bd203945c3f509c12
Author: Yetizone <andreii lisita gmail com>
Date: Tue Apr 7 16:14:19 2020 +0300
ephy-header-bar: Remove unused ShortcutController
In the previous commit we have moved these shortcuts in the window's
ShortcutController
src/ephy-header-bar.c | 51 ---------------------------------------------------
1 file changed, 51 deletions(-)
---
diff --git a/src/ephy-header-bar.c b/src/ephy-header-bar.c
index f5fd75103..758c9a8bb 100644
--- a/src/ephy-header-bar.c
+++ b/src/ephy-header-bar.c
@@ -165,36 +165,6 @@ update_revealer_visibility (GtkRevealer *revealer)
gtk_revealer_get_child_revealed (revealer));
}
-static void
-handle_primary_tab_key (GtkWidget *widget,
- gpointer user_data)
-{
- EphyHeaderBar *header_bar = EPHY_HEADER_BAR (user_data);
- GtkWidget *entry = ephy_location_entry_get_entry (EPHY_LOCATION_ENTRY (header_bar->title_widget));
- GtkWidget *nb;
-
- nb = ephy_window_get_notebook (header_bar->window);
- g_assert (nb != NULL);
-
- ephy_notebook_next_page (EPHY_NOTEBOOK (nb));
- gtk_widget_grab_focus (entry);
-}
-
-static void
-handle_primary_iso_tab_key (GtkWidget *widget,
- gpointer user_data)
-{
- EphyHeaderBar *header_bar = EPHY_HEADER_BAR (user_data);
- GtkWidget *entry = ephy_location_entry_get_entry (EPHY_LOCATION_ENTRY (header_bar->title_widget));
- GtkWidget *nb;
-
- nb = ephy_window_get_notebook (header_bar->window);
- g_assert (nb != NULL);
-
- ephy_notebook_prev_page (EPHY_NOTEBOOK (nb));
- gtk_widget_grab_focus (entry);
-}
-
static void
ephy_header_bar_constructed (GObject *object)
{
@@ -234,28 +204,7 @@ ephy_header_bar_constructed (GObject *object)
if (ephy_embed_shell_get_mode (embed_shell) == EPHY_EMBED_SHELL_MODE_APPLICATION)
header_bar->title_widget = EPHY_TITLE_WIDGET (ephy_title_box_new ());
else {
- DzlShortcutController *controller;
- GtkWidget *entry;
-
header_bar->title_widget = EPHY_TITLE_WIDGET (ephy_location_entry_new ());
- entry = ephy_location_entry_get_entry (EPHY_LOCATION_ENTRY (header_bar->title_widget));
- controller = dzl_shortcut_controller_find (entry);
-
- dzl_shortcut_controller_add_command_callback (controller,
- "org.gnome.Epiphany.next-tab-pages",
- "<Primary>Tab",
- DZL_SHORTCUT_PHASE_DISPATCH,
- handle_primary_tab_key,
- header_bar,
- NULL);
-
- dzl_shortcut_controller_add_command_callback (controller,
- "org.gnome.Epiphany.prev-tab-pages",
- "<Primary>ISO_Left_Tab",
- DZL_SHORTCUT_PHASE_DISPATCH,
- handle_primary_iso_tab_key,
- header_bar,
- NULL);
}
if (is_desktop_pantheon ()) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]