[gtk/wip/baedert/for-master] linkbutton: Use widget API to set has-toolip



commit c923654ab34094154e977fbacf02a84277fadbc1
Author: Timm Bäder <mail baedert org>
Date:   Sun Aug 25 14:30:33 2019 +0200

    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 a0a8bc2d17..5c37b5b1cf 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);
 


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