[murrine/gtk+3] Fix separator in GtkComboBox/GtkToggleButton
- From: Andrea Cimitan <acimitan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [murrine/gtk+3] Fix separator in GtkComboBox/GtkToggleButton
- Date: Wed, 13 Oct 2010 16:50:11 +0000 (UTC)
commit 3e6a98eff6d9a94c6e8853078a4ea25a42367e17
Author: Andrea Cimitan <andrea cimitan gmail com>
Date: Wed Oct 13 18:49:38 2010 +0200
Fix separator in GtkComboBox/GtkToggleButton
src/murrine_style.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/murrine_style.c b/src/murrine_style.c
index 5ec43b4..696c7d2 100644
--- a/src/murrine_style.c
+++ b/src/murrine_style.c
@@ -1625,7 +1625,6 @@ murrine_style_draw_vline (GtkStyle *style,
{
/* Get toplevel window for this widget */
GtkWidget* toplevel = gtk_widget_get_toplevel (widget);
- GtkWidget* parent = gtk_widget_get_parent (widget);
MurrineStyle *murrine_style = MURRINE_STYLE (style);
MurrineColors *colors = &murrine_style->colors;
@@ -1645,12 +1644,10 @@ murrine_style_draw_vline (GtkStyle *style,
params.style = MRN_STYLE_RGBA;
}
-
-
- if (!(widget && parent && gtk_widget_get_parent (parent) &&
+ if (!(widget &&
MRN_IS_HBOX (gtk_widget_get_parent (widget)) &&
- MRN_IS_TOGGLE_BUTTON (gtk_widget_get_parent (parent)) &&
- MRN_IS_COMBO_BOX (gtk_widget_get_parent (parent))))
+ MRN_IS_TOGGLE_BUTTON (gtk_widget_get_parent (gtk_widget_get_parent (widget))) &&
+ MRN_IS_COMBO_BOX (gtk_widget_get_parent (gtk_widget_get_parent (gtk_widget_get_parent (widget))))))
{
STYLE_FUNCTION(draw_separator) (cr, colors, ¶ms, &separator, x, y1, 2, y2-y1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]