[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix negative dimensions GTK warning when running terminal with --tab option

noreply at xfce.org noreply at xfce.org
Wed May 31 02:34:16 CEST 2017


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

f   2   4   0   4       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-terminal.

commit 13c71c81eb54db919ca23c870a9af1cb92233dca
Author: Igor <f2404 at yandex.ru>
Date:   Tue May 30 20:34:02 2017 -0400

    Fix negative dimensions GTK warning when running terminal with --tab option
---
 terminal/terminal-screen.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
index 3507dcc..af9f888 100644
--- a/terminal/terminal-screen.c
+++ b/terminal/terminal-screen.c
@@ -434,9 +434,12 @@ terminal_screen_realize (GtkWidget *widget)
 
   (*GTK_WIDGET_CLASS (terminal_screen_parent_class)->realize) (widget);
 
-  /* make sure the TerminalWidget is realized as well */
+#if !GTK_CHECK_VERSION (3, 20, 0)
+  /* make sure the TerminalWidget is realized as well
+     (produces "Drawing a gadget with negative dimensions" Gtk-WARNING) */
   if (!gtk_widget_get_realized (TERMINAL_SCREEN (widget)->terminal))
     gtk_widget_realize (TERMINAL_SCREEN (widget)->terminal);
+#endif
 
   /* connect to the "composited-changed" signal */
   screen = gtk_widget_get_screen (widget);

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


More information about the Xfce4-commits mailing list