Re: Gtk::Switch labels different from ON/OFF



2013-07-11 10:33, Giuseppe Penone skrev:
Hi, is it possible somehow to change the labels ON/OFF to something different? (e.g. A/B).
Thanks, regards,
Giuseppe.



I found the following code in gtk+/gtk/gtkswitch.c, function gtk_switch_draw():

  /* Translators: if the "on" state label requires more than three
   * glyphs then use MEDIUM VERTICAL BAR (U+2759) as the text for
   * the state
   */
  layout = gtk_widget_create_pango_layout (widget, C_("switch", "ON"));
............
  /* Translators: if the "off" state label requires more than three
   * glyphs then use WHITE CIRCLE (U+25CB) as the text for the state
   */
  layout = gtk_widget_create_pango_layout (widget, C_("switch", "OFF"));

This shows, I'm sure, that the ON/OFF labels can be translated, but they can't be changed in any other way.

Kjell



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]