[gimp/soc-2011-gimpunitentry: 64/68] Fix for crash in GimpTextStyleEditor
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-gimpunitentry: 64/68] Fix for crash in GimpTextStyleEditor
- Date: Fri, 13 Sep 2013 19:59:21 +0000 (UTC)
commit c8008c132e4884a7d130d50b89afb00387b8e9af
Author: Enrico Schrö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 df3285c..0831edf 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]