[gimp/gtk3-port: 145/243] app: port GimpContainerIconView to GtkStyleContext
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 145/243] app: port GimpContainerIconView to GtkStyleContext
- Date: Mon, 11 Apr 2011 17:19:21 +0000 (UTC)
commit 484d3e98bb9127166e5ad781371e1843c3fb0a00
Author: Michael Natterer <mitch gimp org>
Date: Sun Dec 19 13:10:20 2010 +0100
app: port GimpContainerIconView to GtkStyleContext
app/widgets/gimpcontainericonview.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpcontainericonview.c b/app/widgets/gimpcontainericonview.c
index 27b674b..8f8b3bc 100644
--- a/app/widgets/gimpcontainericonview.c
+++ b/app/widgets/gimpcontainericonview.c
@@ -287,10 +287,13 @@ gimp_container_icon_view_menu_position (GtkMenu *menu,
else
#endif
{
- GtkStyle *style = gtk_widget_get_style (widget);
+ GtkStyleContext *style = gtk_widget_get_style_context (widget);
+ GtkBorder border;
- *x += style->xthickness;
- *y += style->ythickness;
+ gtk_style_context_get_border (style, 0, &border);
+
+ *x += border.left;
+ *y += border.top;
}
gimp_menu_position (menu, x, y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]