From afb3715700b49b054f1048e1b6fc36643f0f89ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 25 Aug 2019 14:30:33 +0200 Subject: [PATCH] linkbutton: Use widget API to set has-toolip As God intended. --- gtk/gtklinkbutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c index e69b98d92e..c8cc0aad2d 100644 --- a/gtk/gtklinkbutton.c +++ b/gtk/gtklinkbutton.c @@ -260,11 +260,11 @@ gtk_link_button_init (GtkLinkButton *link_button) gtk_button_set_relief (GTK_BUTTON (link_button), GTK_RELIEF_NONE); gtk_widget_set_state_flags (GTK_WIDGET (link_button), GTK_STATE_FLAG_LINK, FALSE); + gtk_widget_set_has_tooltip (GTK_WIDGET (link_button), TRUE); g_signal_connect (link_button, "drag-data-get", G_CALLBACK (gtk_link_button_drag_data_get_cb), NULL); - g_object_set (link_button, "has-tooltip", TRUE, NULL); g_signal_connect (link_button, "query-tooltip", G_CALLBACK (gtk_link_button_query_tooltip_cb), NULL);