diff options
author | Benjamin Otte <otte@redhat.com> | 2017-01-20 08:02:48 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-15 14:22:16 -0500 |
commit | f53b72e5ffc034f003801b9d4ee64328180bc297 (patch) | |
tree | c358e13d2d02ecbe63ca7a90e1359c7be3895e53 /tests/testnotebookdnd.c | |
parent | 3da65ff2337ef24cdf20fbd161722ff37d2d3f9a (diff) | |
download | gtk+-f53b72e5ffc034f003801b9d4ee64328180bc297.tar.gz |
button: Get rid of icon size
In fact, make gtk_button_new_from_icon_name() just set the icon-name
property instead of creating a GtkImage.
Diffstat (limited to 'tests/testnotebookdnd.c')
-rw-r--r-- | tests/testnotebookdnd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testnotebookdnd.c b/tests/testnotebookdnd.c index 3bda059c86..add1dcd0d2 100644 --- a/tests/testnotebookdnd.c +++ b/tests/testnotebookdnd.c @@ -179,7 +179,7 @@ create_notebook (gchar **labels, gtk_widget_set_vexpand (notebook, TRUE); gtk_widget_set_hexpand (notebook, TRUE); - action_widget = gtk_button_new_from_icon_name ("list-add-symbolic", GTK_ICON_SIZE_BUTTON); + action_widget = gtk_button_new_from_icon_name ("list-add-symbolic"); g_signal_connect (action_widget, "clicked", G_CALLBACK (action_clicked_cb), notebook); gtk_widget_show (action_widget); gtk_notebook_set_action_widget (GTK_NOTEBOOK (notebook), action_widget, GTK_PACK_END); @@ -223,7 +223,7 @@ create_notebook_non_dragable_content (gchar **labels, gtk_widget_set_vexpand (notebook, TRUE); gtk_widget_set_hexpand (notebook, TRUE); - action_widget = gtk_button_new_from_icon_name ("list-add-symbolic", GTK_ICON_SIZE_BUTTON); + action_widget = gtk_button_new_from_icon_name ("list-add-symbolic"); g_signal_connect (action_widget, "clicked", G_CALLBACK (action_clicked_cb), notebook); gtk_widget_show (action_widget); gtk_notebook_set_action_widget (GTK_NOTEBOOK (notebook), action_widget, GTK_PACK_END); |