[gtk+] colorscale: don't use focus-line-width
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] colorscale: don't use focus-line-width
- Date: Fri, 9 May 2014 18:08:56 +0000 (UTC)
commit 13649a3fbc7c21ae5eb67deb087a7937156e94d0
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun May 4 20:41:41 2014 +0200
colorscale: don't use focus-line-width
gtk/gtkcolorscale.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkcolorscale.c b/gtk/gtkcolorscale.c
index 23ac4fa..0f06aa2 100644
--- a/gtk/gtkcolorscale.c
+++ b/gtk/gtkcolorscale.c
@@ -56,21 +56,20 @@ gtk_color_scale_get_trough_size (GtkColorScale *scale,
gint *height_out)
{
GtkWidget *widget = GTK_WIDGET (scale);
- gint width, height, focus_line_width;
+ gint width, height;
gint x_offset, y_offset;
gint slider_width, slider_height;
gtk_widget_style_get (widget,
- "focus-line-width", &focus_line_width,
"slider-width", &slider_width,
"slider-length", &slider_height,
NULL);
- width = gtk_widget_get_allocated_width (widget) - 2 * (focus_line_width);
- height = gtk_widget_get_allocated_height (widget) - 2 * (focus_line_width);
+ width = gtk_widget_get_allocated_width (widget);
+ height = gtk_widget_get_allocated_height (widget);
- x_offset = focus_line_width;
- y_offset = focus_line_width;
+ x_offset = 0;
+ y_offset = 0;
/* if the slider has a vertical shape, draw the trough asymmetric */
if (slider_width > slider_height)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]