summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2013-11-18 09:04:13 +0100
committerFabiano FidĂȘncio <fidencio@redhat.com>2013-11-19 00:49:03 +0100
commite419233bcf92526ad1ab9f819b53847554b5a2f7 (patch)
tree87f9ec9d8afa28706046ce34a80475bc36e978e4 /demos
parent52ebe1cb542b060c56c78b4a411283022cf2fb78 (diff)
downloadlibgdata-e419233bcf92526ad1ab9f819b53847554b5a2f7.tar.gz
demos: Fix GtkStock deprecated functions
https://bugzilla.gnome.org/show_bug.cgi?id=712565
Diffstat (limited to 'demos')
-rw-r--r--demos/scrapbook/scrapbook.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/scrapbook/scrapbook.c b/demos/scrapbook/scrapbook.c
index 955d34a8..2abe2d68 100644
--- a/demos/scrapbook/scrapbook.c
+++ b/demos/scrapbook/scrapbook.c
@@ -516,7 +516,7 @@ properties_show (GtkWidget *widget, ScrapData *first)
gtk_widget_show (box2);
/* OK button */
- button = gtk_button_new_from_stock (GTK_STOCK_OK);
+ button = gtk_button_new_with_label ("_OK");
g_signal_connect (button, "clicked", (GCallback) properties_set, self);
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (self->box1), button, FALSE, FALSE, 0);
@@ -587,8 +587,8 @@ got_name (GtkWidget *widget, ScrapData *scrap_data)
gtk_widget_destroy (self->dialog);
file_dialog = gtk_file_chooser_dialog_new ("Upload Photo", GTK_WINDOW (scrap_data->window), GTK_FILE_CHOOSER_ACTION_SAVE,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+ "_Cancel", GTK_RESPONSE_CANCEL,
+ "_Open", GTK_RESPONSE_ACCEPT,
NULL);
if (gtk_dialog_run (GTK_DIALOG (file_dialog)) == GTK_RESPONSE_ACCEPT) {