[gtk+/wip/baedert/drawing] paned: Draw handle separator at the right location
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing] paned: Draw handle separator at the right location
- Date: Sun, 18 Jun 2017 08:14:23 +0000 (UTC)
commit d070a7200832953aab214b151ff459a99680c904
Author: Timm Bäder <mail baedert org>
Date: Sun Jun 18 10:13:11 2017 +0200
paned: Draw handle separator at the right location
gtk/gtkpaned.c | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 0dcde15..dcce3ea 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1476,25 +1476,12 @@ gtk_paned_render_handle (GtkGizmo *gizmo,
{
GtkWidget *widget = GTK_WIDGET (gizmo);
GtkCssStyle *style = gtk_css_node_get_style (gtk_widget_get_css_node (widget));
- GtkAllocation content_alloc;
- GtkAllocation widget_alloc;
- int x, y;
-
- gtk_widget_get_content_allocation (widget, &content_alloc);
- gtk_widget_get_allocation (widget, &widget_alloc);
-
- x = content_alloc.x - widget_alloc.x;
- y = content_alloc.y - widget_alloc.y;
-
- gtk_snapshot_offset (snapshot, x, y);
gtk_css_style_snapshot_icon (style,
snapshot,
- content_alloc.width, content_alloc.height,
+ 0, 0,
GTK_CSS_IMAGE_BUILTIN_PANE_SEPARATOR);
- gtk_snapshot_offset (snapshot, -x, -y);
-
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]