[Xfce4-commits] [xfce/xfce4-appfinder] 01/05: Avoid critical message if sidepane is not realized

noreply at xfce.org noreply at xfce.org
Sat Aug 18 20:32:49 CEST 2018


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

a   n   d   r   e       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 xfce/xfce4-appfinder.

commit c0ddf936dce459aee18e3957ed3d1b33a14eda35
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sat Aug 18 14:44:02 2018 -0300

    Avoid critical message if sidepane is not realized
---
 src/appfinder-window.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/appfinder-window.c b/src/appfinder-window.c
index e1f2e48..41aa7c6 100644
--- a/src/appfinder-window.c
+++ b/src/appfinder-window.c
@@ -1414,7 +1414,8 @@ xfce_appfinder_window_treeview_key_press_event (GtkWidget           *widget,
     {
       if (event->keyval == GDK_KEY_Left)
         {
-          gtk_widget_grab_focus (window->sidepane);
+          if (gtk_widget_get_realized (window->sidepane))
+            gtk_widget_grab_focus (window->sidepane);
           return TRUE;
         }
     }

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


More information about the Xfce4-commits mailing list