[gedit/gnome-3-36] Window: fix some bottom panel issues
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/gnome-3-36] Window: fix some bottom panel issues
- Date: Thu, 19 Mar 2020 14:45:47 +0000 (UTC)
commit 31efe4374b7d684d6f98a8f3e6434b6f8d8ce4d3
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Mar 19 15:31:50 2020 +0100
Window: fix some bottom panel issues
When pressing the keyboard shortcut to toggle the bottom panel
visibility (Ctrl+F9), that keyboard shortcut didn't work (it did
nothing) when the bottom panel was empty. Now it shows the empty panel.
Also:
Fixes https://gitlab.gnome.org/GNOME/gedit-plugins/issues/16
gedit/gedit-window.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 2b5a0ea9a..dc2857ec0 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -744,10 +744,6 @@ update_actions_sensitivity (GeditWindow *window)
g_simple_action_set_enabled (G_SIMPLE_ACTION (action),
num_notebooks > 1);
- action = g_action_map_lookup_action (G_ACTION_MAP (window), "bottom-panel");
- g_simple_action_set_enabled (G_SIMPLE_ACTION (action),
- gtk_stack_get_visible_child (GTK_STACK (window->priv->bottom_panel)) !=
NULL);
-
/* We disable File->Quit/SaveAll/CloseAll while printing to avoid to have two
operations (save and print/print preview) that uses the message area at
the same time (may be we can remove this limitation in the future) */
@@ -2438,8 +2434,7 @@ bottom_panel_item_added (GtkStack *panel,
n_children = g_list_length (children);
g_list_free (children);
- /* if it's the first item added, set the menu item
- * sensitive and if needed show the panel */
+ /* First item added. */
if (n_children == 1)
{
gboolean show;
@@ -2519,13 +2514,6 @@ init_panels_visibility (GeditWindow *window)
g_free (panel_page);
}
- else
- {
- GAction *action;
-
- action = g_action_map_lookup_action (G_ACTION_MAP (window), "bottom-panel");
- g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE);
- }
/* start track sensitivity after the initial state is set */
window->priv->bottom_panel_item_removed_handler_id =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]