diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-24 17:31:22 -0400 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-24 19:53:08 -0400 |
commit | fc71cbe5a6e22c7dea24a028d87ad0e2a050020b (patch) | |
tree | baf11b422ee1640b6e17ac317e27eb2ea49ad59f /tests/testheaderbar.c | |
parent | c79a21e1ddda961be43813daa9179505af89adb7 (diff) | |
download | gtk+-fc71cbe5a6e22c7dea24a028d87ad0e2a050020b.tar.gz |
Remove most of the stock API usage from the tests
With the exception of GtkActions and the tests for stock items.
Diffstat (limited to 'tests/testheaderbar.c')
-rw-r--r-- | tests/testheaderbar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testheaderbar.c b/tests/testheaderbar.c index 7fc640a688..ddfd826df5 100644 --- a/tests/testheaderbar.c +++ b/tests/testheaderbar.c @@ -28,7 +28,7 @@ on_bookmark_clicked (GtkButton *button, gpointer data) chooser = gtk_file_chooser_dialog_new ("File Chooser Test", window, GTK_FILE_CHOOSER_ACTION_OPEN, - GTK_STOCK_CLOSE, + "_Close", GTK_RESPONSE_CLOSE, NULL); @@ -120,7 +120,7 @@ change_header (GtkButton *button, gpointer data) gtk_style_context_add_class (gtk_widget_get_style_context (header), "titlebar"); gtk_header_bar_set_title (GTK_HEADER_BAR (header), "Example header"); - widget = gtk_button_new_from_stock (GTK_STOCK_CLOSE); + widget = gtk_button_new_with_label ("_Close"); gtk_style_context_add_class (gtk_widget_get_style_context (widget), "suggested-action"); g_signal_connect (widget, "clicked", G_CALLBACK (gtk_main_quit), NULL); |