[gnome-terminal] window: Disable size-to menu items when fullscreen
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] window: Disable size-to menu items when fullscreen
- Date: Sun, 20 Oct 2019 18:53:06 +0000 (UTC)
commit 177e051f066e01a10d0595d70820460ddb742ec9
Author: Christian Persch <chpe src gnome org>
Date: Sun Oct 20 20:52:37 2019 +0200
window: Disable size-to menu items when fullscreen
src/terminal-window.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 43e5a47d..012c152c 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1981,6 +1981,8 @@ terminal_window_state_event (GtkWidget *widget,
g_variant_new_boolean (is_fullscreen));
g_simple_action_set_enabled (lookup_action (window, "leave-fullscreen"),
is_fullscreen);
+ g_simple_action_set_enabled (lookup_action (window, "size-to"),
+ !is_fullscreen);
}
if (window_state_event)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]