[gimp] app: set the correct resolution on the text style overlay's size entry
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: set the correct resolution on the text style overlay's size entry
- Date: Sat, 3 Dec 2011 22:57:23 +0000 (UTC)
commit dcf84f391089a626ddd45da931ad5194a58c0358
Author: Michael Natterer <mitch gimp org>
Date: Sat Dec 3 23:56:51 2011 +0100
app: set the correct resolution on the text style overlay's size entry
app/widgets/gimptextstyleeditor.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimptextstyleeditor.c b/app/widgets/gimptextstyleeditor.c
index 16dc7b4..708988c 100644
--- a/app/widgets/gimptextstyleeditor.c
+++ b/app/widgets/gimptextstyleeditor.c
@@ -311,6 +311,9 @@ gimp_text_style_editor_constructed (GObject *object)
G_CALLBACK (gimp_text_style_editor_font_changed),
editor);
+ gimp_size_entry_set_resolution (GIMP_SIZE_ENTRY (editor->size_entry), 0,
+ editor->resolution_y, TRUE);
+
/* use the global user context so we get the global FG/BG colors */
gimp_color_panel_set_context (GIMP_COLOR_PANEL (editor->color_button),
gimp_get_user_context (editor->gimp));
@@ -451,6 +454,9 @@ gimp_text_style_editor_set_property (GObject *object,
break;
case PROP_RESOLUTION_Y:
editor->resolution_y = g_value_get_double (value);
+ if (editor->size_entry)
+ gimp_size_entry_set_resolution (GIMP_SIZE_ENTRY (editor->size_entry), 0,
+ editor->resolution_y, TRUE);
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]