diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2022-02-21 14:12:08 +0500 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2022-02-22 00:00:15 +0500 |
commit | cf8c1544235a12b622a60e932707e1998b5efaee (patch) | |
tree | e6d1efc7426dd95a0cdc5aeb621a508fd8b9a38d /src | |
parent | 77e2ef22a6ebdb6f29201b0b2aa45b7a7ae3395e (diff) | |
download | epiphany-cf8c1544235a12b622a60e932707e1998b5efaee.tar.gz |
header-bar: Don't manually activate action for restore button
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1074>
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-header-bar.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/ephy-header-bar.c b/src/ephy-header-bar.c index 285288189..0850f2411 100644 --- a/src/ephy-header-bar.c +++ b/src/ephy-header-bar.c @@ -165,19 +165,6 @@ add_bookmark_button_clicked_cb (EphyLocationEntry *entry, } static void -restore_button_clicked_cb (GtkButton *button, - EphyHeaderBar *header_bar) -{ - GActionGroup *action_group; - GAction *action; - - action_group = gtk_widget_get_action_group (GTK_WIDGET (header_bar->window), "win"); - action = g_action_map_lookup_action (G_ACTION_MAP (action_group), "fullscreen"); - - g_action_activate (action, NULL); -} - -static void update_revealer_visibility (GtkRevealer *revealer) { gtk_widget_set_visible (GTK_WIDGET (revealer), @@ -278,9 +265,8 @@ ephy_header_bar_constructed (GObject *object) /* Fullscreen restore button */ header_bar->restore_button = gtk_button_new_from_icon_name ("view-restore-symbolic", GTK_ICON_SIZE_BUTTON); - g_signal_connect_object (header_bar->restore_button, "clicked", - G_CALLBACK (restore_button_clicked_cb), - header_bar, 0); + gtk_actionable_set_action_name (GTK_ACTIONABLE (header_bar->restore_button), + "win.fullscreen"); gtk_header_bar_pack_end (GTK_HEADER_BAR (header_bar->header_bar), GTK_WIDGET (header_bar->restore_button)); |