[gimp/soc-2011-gimpunitentry] Fix for crash in GimpTextStyleEditor



commit ebf6ca9010da2c840aba4ccdc9ab1d55cf9b41e3
Author: Enrico SchroÌder <enni schroeder gmail com>
Date:   Fri Aug 12 18:26:42 2011 +0200

    Fix for crash in GimpTextStyleEditor

 app/widgets/gimptextstyleeditor.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimptextstyleeditor.c b/app/widgets/gimptextstyleeditor.c
index 168bfee..c596b54 100644
--- a/app/widgets/gimptextstyleeditor.c
+++ b/app/widgets/gimptextstyleeditor.c
@@ -207,7 +207,8 @@ gimp_text_style_editor_init (GimpTextStyleEditor *editor)
                            _("Change font of selected text"), NULL);
 
   editor->unit_entry = gimp_unit_entry_new ();
-  unit_adjustment = gimp_unit_entry_get_adjustment (GIMP_UNIT_ENTRY (editor->unit_entry));
+  unit_adjustment = gimp_unit_adjustment_new ();
+  gimp_unit_entry_set_adjustment (GIMP_UNIT_ENTRY (editor->unit_entry), unit_adjustment);
   gimp_unit_adjustment_set_unit (unit_adjustment, GIMP_UNIT_PIXEL);
   gtk_box_pack_start (GTK_BOX (editor->upper_hbox), editor->unit_entry,
                       FALSE, FALSE, 0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]