summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2021-05-09 20:53:40 +0500
committerAlexander Mikhaylenko <alexm@gnome.org>2021-05-09 20:55:26 +0500
commit43e33b29902b2e1203160ae8da76e8a0507939ca (patch)
treecf6277431300f25a14acf96117857e6f9a51b583 /tests
parent7ebd9291d97acad640cf1b4e7abda015c9861f0d (diff)
downloadgtk+-43e33b29902b2e1203160ae8da76e8a0507939ca.tar.gz
test: Ensure .image-button on header bar buttons
Diffstat (limited to 'tests')
-rw-r--r--tests/testheaderbar.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/testheaderbar.c b/tests/testheaderbar.c
index 16d16629bc..ebeb971794 100644
--- a/tests/testheaderbar.c
+++ b/tests/testheaderbar.c
@@ -439,7 +439,6 @@ change_header (GtkButton *button, gpointer data)
GtkWidget *window = GTK_WIDGET (data);
GtkWidget *label;
GtkWidget *widget;
- GtkWidget *image;
GtkWidget *header;
if (button && gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)))
@@ -470,10 +469,8 @@ change_header (GtkButton *button, gpointer data)
gtk_header_bar_pack_end (GTK_HEADER_BAR (header), widget);
- widget= gtk_button_new ();
- image = gtk_image_new_from_icon_name ("bookmark-new-symbolic");
+ widget= gtk_button_new_from_icon_name ("bookmark-new-symbolic");
g_signal_connect (widget, "clicked", G_CALLBACK (on_bookmark_clicked), window);
- gtk_button_set_child (GTK_BUTTON (widget), image);
gtk_header_bar_pack_start (GTK_HEADER_BAR (header), widget);
}