[gtk+/wip/otte/gtk4: 115/127] entry: Remove invisible-char style property



commit bf6965c1478bc700cc1d9aa654d5c8133fe29eca
Author: Timm Bäder <mail baedert org>
Date:   Wed Oct 5 19:37:02 2016 +0200

    entry: Remove invisible-char style property

 gtk/gtkentry.c |   28 +---------------------------
 1 files changed, 1 insertions(+), 27 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index f397e84..3bd149a 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -1441,27 +1441,6 @@ gtk_entry_class_init (GtkEntryClass *class)
   g_object_class_install_properties (gobject_class, NUM_PROPERTIES, entry_props);
 
   /**
-   * GtkEntry:invisible-char:
-   *
-   * The invisible character is used when masking entry contents (in
-   * \"password mode\")"). When it is not explicitly set with the
-   * #GtkEntry:invisible-char property, GTK+ determines the character
-   * to use from a list of possible candidates, depending on availability
-   * in the current font.
-   *
-   * This style property allows the theme to prepend a character
-   * to the list of candidates.
-   *
-   * Since: 2.18
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_unichar ("invisible-char",
-                                                                P_("Invisible character"),
-                                                                P_("The character to use when masking entry 
contents (in \"password mode\")"),
-                                                                0,
-                                                                GTK_PARAM_READABLE));
-  
-  /**
    * GtkEntry::populate-popup:
    * @entry: The entry on which the signal is emitted
    * @popup: the container that is being populated
@@ -2455,17 +2434,12 @@ find_invisible_char (GtkWidget *widget)
   PangoAttrList *attr_list;
   gint i;
   gunichar invisible_chars [] = {
-    0,
     0x25cf, /* BLACK CIRCLE */
     0x2022, /* BULLET */
     0x2731, /* HEAVY ASTERISK */
     0x273a  /* SIXTEEN POINTED ASTERISK */
   };
 
-  gtk_widget_style_get (widget,
-                        "invisible-char", &invisible_chars[0],
-                        NULL);
-
   layout = gtk_widget_create_pango_layout (widget, NULL);
 
   attr_list = pango_attr_list_new ();
@@ -2474,7 +2448,7 @@ find_invisible_char (GtkWidget *widget)
   pango_layout_set_attributes (layout, attr_list);
   pango_attr_list_unref (attr_list);
 
-  for (i = (invisible_chars[0] != 0 ? 0 : 1); i < G_N_ELEMENTS (invisible_chars); i++)
+  for (i = 0; i < G_N_ELEMENTS (invisible_chars); i++)
     {
       gchar text[7] = { 0, };
       gint len, count;


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