From 2f6d6f2473942cd559c4c136592b8c0d3cc82556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 26 Sep 2019 05:42:49 +0200 Subject: [PATCH] label: Remove gtk_label_realize We don't need this to update the cursor anymore. --- gtk/gtklabel.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 566a8e7ef7..929da96302 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -444,7 +444,6 @@ static void gtk_label_snapshot (GtkWidget *widget, static gboolean gtk_label_focus (GtkWidget *widget, GtkDirectionType direction); -static void gtk_label_realize (GtkWidget *widget); static void gtk_label_unrealize (GtkWidget *widget); 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->query_tooltip = gtk_label_query_tooltip; widget_class->snapshot = gtk_label_snapshot; - widget_class->realize = gtk_label_realize; widget_class->unrealize = gtk_label_unrealize; widget_class->root = gtk_label_root; 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)); } -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 gtk_label_unrealize (GtkWidget *widget) {