[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [oxygen-gtk/gtk3] src/animations: simplified logic
From: Hugo Pereira Da Costa <hugo () oxygen-icons ! org>
Date: 2013-12-10 15:20:54
Message-ID: E1VqP7G-0006Da-Lk () scm ! kde ! org
[Download RAW message or body]
Git commit 757a8bb50ec1a65a7197c418aba07d1458988e29 by Hugo Pereira Da Costa.
Committed on 10/12/2013 at 10:55.
Pushed by hpereiradacosta into branch 'gtk3'.
simplified logic
M +7 -6 src/animations/oxygentreeviewengine.cpp
http://commits.kde.org/oxygen-gtk/757a8bb50ec1a65a7197c418aba07d1458988e29
diff --git a/src/animations/oxygentreeviewengine.cpp \
b/src/animations/oxygentreeviewengine.cpp index 0986680..4f26f3d 100644
--- a/src/animations/oxygentreeviewengine.cpp
+++ b/src/animations/oxygentreeviewengine.cpp
@@ -48,12 +48,13 @@ namespace Oxygen
gtk_tree_view_set_rules_hint( treeView, true );
GtkWidget* parent( gtk_widget_get_parent( widget ) );
- GtkScrolledWindow* scrolledWindow(0);
- if(
- GTK_IS_SCROLLED_WINDOW( parent ) &&
- gtk_scrolled_window_get_shadow_type( (scrolledWindow = \
GTK_SCROLLED_WINDOW( parent ) ) ) != GTK_SHADOW_IN &&
- !Gtk::gtk_parent_is_shadow_in( parent ) )
- { gtk_scrolled_window_set_shadow_type( scrolledWindow, GTK_SHADOW_IN ); \
} + if( GTK_IS_SCROLLED_WINDOW( parent ) )
+ {
+ GtkScrolledWindow* scrolledWindow( GTK_SCROLLED_WINDOW( parent ) );
+ if( gtk_scrolled_window_get_shadow_type( scrolledWindow ) != \
GTK_SHADOW_IN && !Gtk::gtk_parent_is_shadow_in( parent ) ) + { \
gtk_scrolled_window_set_shadow_type( scrolledWindow, GTK_SHADOW_IN ); } +
+ }
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic