[Xfce4-commits] [xfce/xfce4-appfinder] 02/02: Avoid fallthrough

noreply at xfce.org noreply at xfce.org
Sat Jul 22 23:20:20 CEST 2017


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 fe32f0a1fa039bbf62f1910b45f1f2b5973e9269
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sat Jul 22 18:19:23 2017 -0300

    Avoid fallthrough
---
 src/appfinder-window.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/appfinder-window.c b/src/appfinder-window.c
index 0704900..8d228f6 100644
--- a/src/appfinder-window.c
+++ b/src/appfinder-window.c
@@ -469,7 +469,8 @@ xfce_appfinder_window_key_press_event (GtkWidget   *widget,
       gtk_widget_destroy (widget);
       return TRUE;
     }
-  else if ((event->state & GDK_CONTROL_MASK) != 0)
+
+  if ((event->state & GDK_CONTROL_MASK) != 0)
     {
       switch (event->keyval)
         {
@@ -502,6 +503,8 @@ xfce_appfinder_window_key_press_event (GtkWidget   *widget,
             {
               icon_size--;
             }
+          g_object_set (G_OBJECT (window->model), "icon-size", icon_size, NULL);
+          return TRUE;
 
         case GDK_KEY_0:
         case GDK_KEY_KP_0:

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


More information about the Xfce4-commits mailing list