[libgdata/libgdata-0-14: 11/18] demos: Fix GtkStock deprecated functions
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/libgdata-0-14: 11/18] demos: Fix GtkStock deprecated functions
- Date: Thu, 19 Dec 2013 01:17:15 +0000 (UTC)
commit dd105feff61987c0f772f37cf3ec07012166e8b1
Author: Fabiano FidĂȘncio <fidencio redhat com>
Date: Mon Nov 18 09:04:13 2013 +0100
demos: Fix GtkStock deprecated functions
https://bugzilla.gnome.org/show_bug.cgi?id=712565
demos/scrapbook/scrapbook.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/demos/scrapbook/scrapbook.c b/demos/scrapbook/scrapbook.c
index 955d34a..2abe2d6 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]