[gnome-builder] font-button: drop "pt" suffix from font display
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] font-button: drop "pt" suffix from font display
- Date: Wed, 12 Oct 2016 20:01:40 +0000 (UTC)
commit 206c4facbe6c1aa67d466b001a4d15e078807f6d
Author: Christian Hergert <chergert redhat com>
Date: Wed Oct 12 13:00:41 2016 -0700
font-button: drop "pt" suffix from font display
This isn't really necessary, pt is the default and does not really help
the user out much to specify. GtkFontButton doesn't show this either, so
I think we can just drop it.
https://bugzilla.gnome.org/show_bug.cgi?id=772814
libide/preferences/ide-preferences-font-button.c | 2 +-
libide/preferences/ide-preferences-font-button.ui | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libide/preferences/ide-preferences-font-button.c
b/libide/preferences/ide-preferences-font-button.c
index c1de4a7..22bdfe2 100644
--- a/libide/preferences/ide-preferences-font-button.c
+++ b/libide/preferences/ide-preferences-font-button.c
@@ -95,7 +95,7 @@ ide_preferences_font_button_changed (IdePreferencesFontButton *self,
gchar *font_size;
gtk_label_set_label (self->font_family, pango_font_description_get_family (font_desc));
- font_size = g_strdup_printf ("%dpt", pango_font_description_get_size (font_desc) / PANGO_SCALE);
+ font_size = g_strdup_printf ("%d", pango_font_description_get_size (font_desc) / PANGO_SCALE);
gtk_label_set_label (self->font_size, font_size);
g_free (font_size);
}
diff --git a/libide/preferences/ide-preferences-font-button.ui
b/libide/preferences/ide-preferences-font-button.ui
index a474b92..57f6d20 100644
--- a/libide/preferences/ide-preferences-font-button.ui
+++ b/libide/preferences/ide-preferences-font-button.ui
@@ -26,8 +26,8 @@
<child>
<object class="GtkLabel" id="font_size">
<property name="visible">true</property>
- <property name="width-chars">4</property>
- <property name="xalign">1.0</property>
+ <property name="width-chars">2</property>
+ <property name="xalign">0.0</property>
<style>
<class name="dim-label"/>
</style>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]