mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 19:00:12 +00:00
label: Remove gtk_label_realize
We don't need this to update the cursor anymore.
This commit is contained in:
parent
3f3c8436c5
commit
2f6d6f2473
@ -444,7 +444,6 @@ static void gtk_label_snapshot (GtkWidget *widget,
|
|||||||
static gboolean gtk_label_focus (GtkWidget *widget,
|
static gboolean gtk_label_focus (GtkWidget *widget,
|
||||||
GtkDirectionType direction);
|
GtkDirectionType direction);
|
||||||
|
|
||||||
static void gtk_label_realize (GtkWidget *widget);
|
|
||||||
static void gtk_label_unrealize (GtkWidget *widget);
|
static void gtk_label_unrealize (GtkWidget *widget);
|
||||||
|
|
||||||
static void gtk_label_motion (GtkEventControllerMotion *controller,
|
static void gtk_label_motion (GtkEventControllerMotion *controller,
|
||||||
@ -653,7 +652,6 @@ gtk_label_class_init (GtkLabelClass *class)
|
|||||||
widget_class->style_updated = gtk_label_style_updated;
|
widget_class->style_updated = gtk_label_style_updated;
|
||||||
widget_class->query_tooltip = gtk_label_query_tooltip;
|
widget_class->query_tooltip = gtk_label_query_tooltip;
|
||||||
widget_class->snapshot = gtk_label_snapshot;
|
widget_class->snapshot = gtk_label_snapshot;
|
||||||
widget_class->realize = gtk_label_realize;
|
|
||||||
widget_class->unrealize = gtk_label_unrealize;
|
widget_class->unrealize = gtk_label_unrealize;
|
||||||
widget_class->root = gtk_label_root;
|
widget_class->root = gtk_label_root;
|
||||||
widget_class->unroot = gtk_label_unroot;
|
widget_class->unroot = gtk_label_unroot;
|
||||||
@ -4135,18 +4133,6 @@ gtk_label_set_text_with_mnemonic (GtkLabel *label,
|
|||||||
g_object_thaw_notify (G_OBJECT (label));
|
g_object_thaw_notify (G_OBJECT (label));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gtk_label_realize (GtkWidget *widget)
|
|
||||||
{
|
|
||||||
GtkLabel *label = GTK_LABEL (widget);
|
|
||||||
GtkLabelPrivate *priv = gtk_label_get_instance_private (label);
|
|
||||||
|
|
||||||
GTK_WIDGET_CLASS (gtk_label_parent_class)->realize (widget);
|
|
||||||
|
|
||||||
if (priv->select_info)
|
|
||||||
gtk_label_set_selectable_hint (label);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_label_unrealize (GtkWidget *widget)
|
gtk_label_unrealize (GtkWidget *widget)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user