diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2021-05-09 20:53:40 +0500 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2021-05-09 20:55:26 +0500 |
commit | 43e33b29902b2e1203160ae8da76e8a0507939ca (patch) | |
tree | cf6277431300f25a14acf96117857e6f9a51b583 /tests | |
parent | 7ebd9291d97acad640cf1b4e7abda015c9861f0d (diff) | |
download | gtk+-43e33b29902b2e1203160ae8da76e8a0507939ca.tar.gz |
test: Ensure .image-button on header bar buttons
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testheaderbar.c | 5 |
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); } |