[gnome-system-monitor/wip/newdesign] Removed ultrabold markup from color picker
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor/wip/newdesign] Removed ultrabold markup from color picker
- Date: Wed, 14 Aug 2013 20:43:57 +0000 (UTC)
commit 37dee1c53dbd886b5d48a9904405f5b5ebdb407f
Author: Robert Roth <robert roth off gmail com>
Date: Wed Aug 14 23:18:07 2013 +0300
Removed ultrabold markup from color picker
src/gsm_color_button.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gsm_color_button.c b/src/gsm_color_button.c
index 5c0a0ef..860b6cc 100644
--- a/src/gsm_color_button.c
+++ b/src/gsm_color_button.c
@@ -234,17 +234,17 @@ gsm_color_button_draw (GtkWidget *widget, cairo_t * cr)
pango_layout_set_alignment (layout, PANGO_ALIGN_RIGHT);
if (priv->type == GSMCP_TYPE_NETWORK) {
char* rate = g_format_size(priv->fraction);
- caption = g_strdup_printf ("<span font-weight='ultrabold'>%s</span>", rate);
+ caption = g_strdup_printf ("%s", rate);
g_free (rate);
} else if (priv->type == GSMCP_TYPE_CPU) {
- caption = g_strdup_printf ("<span font-weight='ultrabold'>%.1f%%</span>", priv->fraction * 100.0f);
+ caption = g_strdup_printf ("%.1f%%", priv->fraction * 100.0f);
}
- pango_layout_set_markup (layout, caption, -1);
+ pango_layout_set_text (layout, caption, -1);
g_free (caption);
pango_layout_get_extents (layout, NULL, &extents);
// draw label outline
cairo_move_to (cr, (width - 1.3 * extents.width / PANGO_SCALE)/2 + 9.5 ,
- (height - 1.3 * extents.height / PANGO_SCALE)/2 + 2);
+ (height - 1.3 * extents.height / PANGO_SCALE)/2 + 2.5);
cairo_set_line_width (cr, 3);
cairo_set_source_rgba (cr, 0.0, 0.0, 0.0, 1.0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]