[gnome-calendar/ui-rewrite] build: fixing deprecations from gtk+-3.10
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/ui-rewrite] build: fixing deprecations from gtk+-3.10
- Date: Mon, 1 Jul 2013 19:04:10 +0000 (UTC)
commit e2347fb9bdb03b078e32e3dbb71ecaf2808d6eed
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Sat Jun 29 22:27:25 2013 -0400
build: fixing deprecations from gtk+-3.10
src/gcal-edit-dialog.c | 2 +-
src/gcal-window.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index dee9fd5..ab0ddb7 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/gcal-edit-dialog.c
@@ -280,7 +280,7 @@ gcal_edit_dialog_constructed (GObject* object)
action_area = gtk_dialog_get_action_area (GTK_DIALOG (object));
gtk_box_set_spacing (GTK_BOX (action_area), 6);
- button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
+ button = gtk_button_new_with_label (_("Cancel"));
gtk_size_group_add_widget (size_group, button);
g_object_set_data (G_OBJECT (button),
"response",
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 89d6b21..9f58f2f 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1215,7 +1215,7 @@ gcal_window_edit_dialog_responded (GtkDialog *dialog,
gtk_container_add (GTK_CONTAINER (grid),
gtk_label_new (_("Event deleted")));
- undo_button = gtk_button_new_from_stock (GTK_STOCK_UNDO);
+ undo_button = gtk_button_new_with_label (_("Undo"));
gtk_container_add (GTK_CONTAINER (grid), undo_button);
gtk_container_add (GTK_CONTAINER (priv->noty), grid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]