[gtk/wip/exalm/image-button: 4/4] test: Ensure .image-button on header bar buttons
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/image-button: 4/4] test: Ensure .image-button on header bar buttons
- Date: Sun, 9 May 2021 15:55:58 +0000 (UTC)
commit 43e33b29902b2e1203160ae8da76e8a0507939ca
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun May 9 20:53:40 2021 +0500
test: Ensure .image-button on header bar buttons
tests/testheaderbar.c | 5 +----
1 file changed, 1 insertion(+), 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]