[Xfce4-commits] [apps/xfce4-taskmanager] 01/01: Drop superfluous check for gtk_main_level

noreply at xfce.org noreply at xfce.org
Sat Apr 11 00:58:42 CEST 2020


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-taskmanager.

commit ea0fb09b48a4b0af1efbd22fd747349e9f2ba3f6
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sat Apr 11 00:58:10 2020 +0200

    Drop superfluous check for gtk_main_level
---
 src/process-window.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/process-window.c b/src/process-window.c
index f4169fc..0f05139 100644
--- a/src/process-window.c
+++ b/src/process-window.c
@@ -415,10 +415,8 @@ xtm_process_window_key_pressed (XtmProcessWindow *window, GdkEventKey *event)
 
 	if (event->keyval == GDK_KEY_Escape ||
 		(event->keyval == GDK_KEY_q && (event->state & GDK_CONTROL_MASK))) {
-		if (gtk_main_level () > 0) {
-			xtm_settings_save_settings (window->settings);
-			g_signal_emit_by_name (window, "delete-event", event, &ret, G_TYPE_BOOLEAN);
-		}
+		xtm_settings_save_settings (window->settings);
+		g_signal_emit_by_name (window, "delete-event", event, &ret, G_TYPE_BOOLEAN);
 		ret = TRUE;
 	}
 	else if (event->keyval == GDK_KEY_f && (event->state & GDK_CONTROL_MASK)) {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list