diff options
author | Timm Bäder <mail@baedert.org> | 2020-01-29 12:11:39 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-07 13:16:32 -0500 |
commit | b7ee2cbc289b4ab8a950cd77bdcd69a6f13932a7 (patch) | |
tree | dca0c99c5a1d77e317a2dce4f42c851816ff6c63 /gtk/gtklinkbutton.c | |
parent | b1d64a6b3a6d16904104772e3a86294897acf41b (diff) | |
download | gtk+-b7ee2cbc289b4ab8a950cd77bdcd69a6f13932a7.tar.gz |
Start using GtkWidget's new style class API
Diffstat (limited to 'gtk/gtklinkbutton.c')
-rw-r--r-- | gtk/gtklinkbutton.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c index 2621591a5e..be28f64613 100644 --- a/gtk/gtklinkbutton.c +++ b/gtk/gtklinkbutton.c @@ -320,7 +320,6 @@ gtk_link_content_init (GtkLinkContent *content) static void gtk_link_button_init (GtkLinkButton *link_button) { - GtkStyleContext *context; GtkGesture *gesture; GdkContentProvider *content; GtkDragSource *source; @@ -347,8 +346,7 @@ gtk_link_button_init (GtkLinkButton *link_button) link_button); gtk_widget_add_controller (GTK_WIDGET (link_button), GTK_EVENT_CONTROLLER (gesture)); - context = gtk_widget_get_style_context (GTK_WIDGET (link_button)); - gtk_style_context_add_class (context, "link"); + gtk_widget_add_style_class (GTK_WIDGET (link_button), "link"); gtk_widget_set_cursor_from_name (GTK_WIDGET (link_button), "pointer"); } |