diff options
author | David Shea <dshea@redhat.com> | 2014-04-16 11:03:25 -0400 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2014-04-16 21:43:26 -0300 |
commit | 83cc9dbe28b3c47da6b24b0f5aaf46621129e63a (patch) | |
tree | f6ee4df1e9dad7653ce12bcd99b39431a6100467 | |
parent | 21eb9583b70e07dab6f0cef68e77eb0d4dbab86e (diff) | |
download | glade-83cc9dbe28b3c47da6b24b0f5aaf46621129e63a.tar.gz |
Allow 3 decimal digits for the text scale value.
-rw-r--r-- | plugins/gtk+/glade-attributes.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gtk+/glade-attributes.c b/plugins/gtk+/glade-attributes.c index 167476f3..368cb5b7 100644 --- a/plugins/gtk+/glade-attributes.c +++ b/plugins/gtk+/glade-attributes.c @@ -207,6 +207,7 @@ static gboolean append_empty_row (GtkListStore *store, PangoAttrType type) { const gchar *name = NULL; + guint spin_digits = 0; GtkListStore *model = get_enum_model_for_combo (type); GtkTreeIter iter; AttrEditType edit_type = EDIT_INVALID; @@ -293,6 +294,7 @@ append_empty_row (GtkListStore *store, PangoAttrType type) case PANGO_ATTR_SCALE: edit_type = EDIT_SPIN; name = C_ ("textattr", "Scale"); + spin_digits = 3; break; case PANGO_ATTR_FONT_DESC: @@ -327,6 +329,7 @@ append_empty_row (GtkListStore *store, PangoAttrType type) COLUMN_TEXT_STYLE, PANGO_STYLE_ITALIC, COLUMN_TEXT_FG, "Grey", COLUMN_COMBO_MODEL, model, + COLUMN_SPIN_DIGITS, spin_digits, ACTIVATE_COLUMN_FROM_TYPE (edit_type), TRUE, -1); return TRUE; } |