[gtk+] entry: Use the element name entry
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] entry: Use the element name entry
- Date: Fri, 23 Oct 2015 20:23:00 +0000 (UTC)
commit b2dd9cbc599de7be29598ed6065a6b09d8747ee3
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Oct 23 14:51:35 2015 -0400
entry: Use the element name entry
Set the element name on the css node and drop the .entry class.
gtk/gtkentry.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index ea0bd61..99f7df7 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -2006,6 +2006,7 @@ gtk_entry_class_init (GtkEntryClass *class)
G_PARAM_DEPRECATED));
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_ENTRY_ACCESSIBLE);
+ gtk_widget_class_set_css_name (widget_class, "entry");
}
static void
@@ -2640,7 +2641,6 @@ find_invisible_char (GtkWidget *widget)
static void
gtk_entry_init (GtkEntry *entry)
{
- GtkStyleContext *context;
GtkEntryPrivate *priv;
entry->priv = gtk_entry_get_instance_private (entry);
@@ -2684,9 +2684,6 @@ gtk_entry_init (GtkEntry *entry)
g_signal_connect (priv->im_context, "delete-surrounding",
G_CALLBACK (gtk_entry_delete_surrounding_cb), entry);
- context = gtk_widget_get_style_context (GTK_WIDGET (entry));
- gtk_style_context_add_class (context, GTK_STYLE_CLASS_ENTRY);
-
gtk_entry_update_cached_style_values (entry);
priv->drag_gesture = gtk_gesture_drag_new (GTK_WIDGET (entry));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]