[gimp/soc-2009-dynamics] Build with GSEAL_ENABLE
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp/soc-2009-dynamics] Build with GSEAL_ENABLE
- Date: Sat, 17 Oct 2009 19:24:33 +0000 (UTC)
commit 57915302f60e3261bcd7b1379456fc98cd10d7bc
Author: Michael Natterer <mitch gimp org>
Date: Sat Oct 17 21:24:12 2009 +0200
Build with GSEAL_ENABLE
app/widgets/gimpdynamicseditor.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/app/widgets/gimpdynamicseditor.c b/app/widgets/gimpdynamicseditor.c
index 1acb014..c8b52a1 100644
--- a/app/widgets/gimpdynamicseditor.c
+++ b/app/widgets/gimpdynamicseditor.c
@@ -383,17 +383,22 @@ dynamics_check_button_size_allocate (GtkWidget *toggle,
GtkAllocation *allocation,
GtkWidget *label)
{
- GtkWidget *fixed = label->parent;
- gint x, y;
+ GtkWidget *fixed = gtk_widget_get_parent (label);
+ GtkAllocation label_allocation;
+ GtkAllocation fixed_allocation;
+ gint x, y;
+
+ gtk_widget_get_allocation (label, &label_allocation);
+ gtk_widget_get_allocation (fixed, &fixed_allocation);
if (gtk_widget_get_direction (label) == GTK_TEXT_DIR_LTR)
x = allocation->x;
else
- x = allocation->x + allocation->width - label->allocation.width;
+ x = allocation->x + allocation->width - label_allocation.width;
- x -= fixed->allocation.x;
+ x -= fixed_allocation.x;
- y = fixed->allocation.height - label->allocation.height;
+ y = fixed_allocation.height - label_allocation.height;
gtk_fixed_move (GTK_FIXED (fixed), label, x, y);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]