[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [oxygen-gtk] src/animations: Make combobox list 2px wider in non-composited mode to make ugly shadow
From: Ruslan Kabatsayev <b7.10110111 () gmail ! com>
Date: 2012-06-30 15:21:05
Message-ID: 20120630152105.F20A5A60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 9ec1e6a0da437e6b1fad99cccb2796264be119c4 by Ruslan Kabatsayev.
Committed on 30/06/2012 at 14:30.
Pushed by kabatsayev into branch 'master'.
Make combobox list 2px wider in non-composited mode to make ugly shadow look not like \
part of list
M +3 -2 src/animations/oxygenanimations.cpp
http://commits.kde.org/oxygen-gtk/9ec1e6a0da437e6b1fad99cccb2796264be119c4
diff --git a/src/animations/oxygenanimations.cpp \
b/src/animations/oxygenanimations.cpp index f774439..9ce09ee 100644
--- a/src/animations/oxygenanimations.cpp
+++ b/src/animations/oxygenanimations.cpp
@@ -254,10 +254,11 @@ namespace Oxygen
gdk_window_get_origin( gtk_widget_get_window( combobox ), &targetX, &dummy \
);
const GtkAllocation comboAllocation( Gtk::gtk_widget_get_allocation( \
combobox ) );
- gtk_window_move( window, targetX + comboAllocation.x + 3, y );
+ int uglyShadowWidth=!Gtk::gdk_default_screen_is_composited();
+ gtk_window_move( window, targetX + comboAllocation.x + 3 - uglyShadowWidth, \
y );
const GtkAllocation widgetAllocation( Gtk::gtk_widget_get_allocation( widget \
) );
- gtk_widget_set_size_request( widget, comboAllocation.width - 6, \
widgetAllocation.height ); + gtk_widget_set_size_request( widget, \
comboAllocation.width - 6 + 2*uglyShadowWidth, widgetAllocation.height ); #endif
return TRUE;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic