[Xfce4-commits] [apps/xfce4-terminal] 01/01: Use default switch cases

noreply at xfce.org noreply at xfce.org
Tue Jan 24 16:47:17 CET 2017


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

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit 8daf28381cff1e911412f62f1b3ae435fafb83f5
Author: Igor <f2404 at yandex.ru>
Date:   Tue Jan 24 18:47:11 2017 +0300

    Use default switch cases
---
 terminal/terminal-screen.c | 2 +-
 terminal/terminal-window.c | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
index c2069d5..b88fd8d 100644
--- a/terminal/terminal-screen.c
+++ b/terminal/terminal-screen.c
@@ -2327,7 +2327,7 @@ terminal_screen_update_scrolling_bar (TerminalScreen *screen)
           gtk_widget_show (screen->scrollbar);
           break;
 
-        case TERMINAL_SCROLLBAR_RIGHT:
+        default: /* TERMINAL_SCROLLBAR_RIGHT */
           gtk_box_reorder_child (GTK_BOX (screen), screen->scrollbar, 1);
           gtk_widget_show (screen->scrollbar);
           break;
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 4c619af..37b2dd6 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -1229,7 +1229,7 @@ terminal_window_notebook_scroll_event (GtkNotebook    *notebook,
       gtk_notebook_prev_page (notebook);
       return TRUE;
 
-    case GDK_SCROLL_SMOOTH:
+    default: /* GDK_SCROLL_SMOOTH */
       switch (gtk_notebook_get_tab_pos (notebook)) {
         case GTK_POS_LEFT:
         case GTK_POS_RIGHT:
@@ -1239,8 +1239,7 @@ terminal_window_notebook_scroll_event (GtkNotebook    *notebook,
             gtk_notebook_prev_page (notebook);
           break;
 
-        case GTK_POS_TOP:
-        case GTK_POS_BOTTOM:
+        default: /* GTK_POS_TOP or GTK_POS_BOTTOM */
           if (event->delta_x > 0)
             gtk_notebook_next_page (notebook);
           else if (event->delta_x < 0)

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


More information about the Xfce4-commits mailing list