[gtk+/wip/focusprops: 46/48] listbox: don't use focus-line-width
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/focusprops: 46/48] listbox: don't use focus-line-width
- Date: Mon, 5 May 2014 03:57:01 +0000 (UTC)
commit 3234c53ac54bb5ff8bc2a409d2f8ec8f6c077ef1
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun May 4 20:42:04 2014 +0200
listbox: don't use focus-line-width
gtk/gtklistbox.c | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index b62bec3..e6784c1 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -2937,21 +2937,17 @@ gtk_list_box_row_get_full_border (GtkListBoxRow *row,
GtkStyleContext *context;
GtkStateFlags state;
GtkBorder padding, border;
- int focus_width;
context = gtk_widget_get_style_context (widget);
state = gtk_style_context_get_state (context);
gtk_style_context_get_padding (context, state, &padding);
gtk_style_context_get_border (context, state, &border);
- gtk_style_context_get_style (context,
- "focus-line-width", &focus_width,
- NULL);
-
- full_border->left = padding.left + border.left + focus_width;
- full_border->right = padding.right + border.right + focus_width;
- full_border->top = padding.top + border.top + focus_width;
- full_border->bottom = padding.bottom + border.bottom + focus_width;
+
+ full_border->left = padding.left + border.left;
+ full_border->right = padding.right + border.right;
+ full_border->top = padding.top + border.top;
+ full_border->bottom = padding.bottom + border.bottom;
}
static void gtk_list_box_row_get_preferred_height_for_width (GtkWidget *widget,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]