[gtk/power-on-switch] Use power symbols for GtkSwitch labels
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/power-on-switch] Use power symbols for GtkSwitch labels
- Date: Fri, 11 Jan 2019 15:10:22 +0000 (UTC)
commit 796e884c3f90598f352f9c7886ceb671f257c134
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Jan 11 15:06:18 2019 +0000
Use power symbols for GtkSwitch labels
Both the "on" and "off" IEC states have a corresponding Unicode glyph,
starting from Unicode 9.0.
gtk/gtkswitch.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 08ebfd6ee1..bf63f34fd2 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -299,10 +299,10 @@ gtk_switch_create_pango_layouts (GtkSwitch *self)
GtkSwitchPrivate *priv = self->priv;
g_clear_object (&priv->on_layout);
- priv->on_layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), "❙");
+ priv->on_layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), "⏽");
g_clear_object (&priv->off_layout);
- priv->off_layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), "○");
+ priv->off_layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), "⭘");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]