[five-or-more] Deprecation fixes
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more] Deprecation fixes
- Date: Tue, 23 Sep 2014 18:39:54 +0000 (UTC)
commit 518d483f6e0c2cf2feb19d273a2c05ad8152f6a2
Author: Robert Roth <robert roth off gmail com>
Date: Sun Sep 21 07:45:55 2014 +0300
Deprecation fixes
Fixed deprecated direct rsvg include, rsvg init and stock items usage.
https://bugzilla.gnome.org/show_bug.cgi?id=737060
src/games-preimage.c | 4 ----
src/games-scores-dialog.c | 16 ++++++++--------
2 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/src/games-preimage.c b/src/games-preimage.c
index 94ff8ea..4d51df7 100644
--- a/src/games-preimage.c
+++ b/src/games-preimage.c
@@ -31,8 +31,6 @@
#include <gdk/gdk.h>
#include <librsvg/rsvg.h>
-#include <librsvg/rsvg-cairo.h>
-
#include "games-preimage.h"
@@ -86,8 +84,6 @@ games_preimage_class_init (GamesPreimageClass * klass)
GObjectClass *oclass = G_OBJECT_CLASS (klass);
oclass->finalize = games_preimage_finalize;
-
- rsvg_init ();
}
/**
diff --git a/src/games-scores-dialog.c b/src/games-scores-dialog.c
index ec53ecb..665e1bc 100644
--- a/src/games-scores-dialog.c
+++ b/src/games-scores-dialog.c
@@ -368,30 +368,30 @@ void games_scores_dialog_set_buttons (GamesScoresDialog *self, guint buttons)
buttons = GAMES_SCORES_CLOSE_BUTTON;
if (buttons & GAMES_SCORES_QUIT_BUTTON) {
- gtk_dialog_add_button (GTK_DIALOG (self), GTK_STOCK_QUIT,
+ gtk_dialog_add_button (GTK_DIALOG (self), _("_Quit"),
GTK_RESPONSE_REJECT);
- gtk_dialog_set_default_response (GTK_DIALOG (self),
+ gtk_dialog_set_default_response (GTK_DIALOG (self),
GTK_RESPONSE_REJECT);
}
if (buttons & GAMES_SCORES_UNDO_BUTTON) {
- gtk_dialog_add_button (GTK_DIALOG (self), GTK_STOCK_UNDO,
+ gtk_dialog_add_button (GTK_DIALOG (self), _("_Undo"),
GTK_RESPONSE_DELETE_EVENT);
- gtk_dialog_set_default_response (GTK_DIALOG (self),
+ gtk_dialog_set_default_response (GTK_DIALOG (self),
GTK_RESPONSE_DELETE_EVENT);
}
if (buttons & GAMES_SCORES_NEW_GAME_BUTTON) {
- gtk_dialog_add_button (GTK_DIALOG (self), _("New Game"),
+ gtk_dialog_add_button (GTK_DIALOG (self), _("_New Game"),
GTK_RESPONSE_ACCEPT);
- gtk_dialog_set_default_response (GTK_DIALOG (self),
+ gtk_dialog_set_default_response (GTK_DIALOG (self),
GTK_RESPONSE_ACCEPT);
}
if (buttons & GAMES_SCORES_CLOSE_BUTTON) {
- gtk_dialog_add_button (GTK_DIALOG (self), GTK_STOCK_CLOSE,
+ gtk_dialog_add_button (GTK_DIALOG (self), _("_Close"),
GTK_RESPONSE_CLOSE);
- gtk_dialog_set_default_response (GTK_DIALOG (self),
+ gtk_dialog_set_default_response (GTK_DIALOG (self),
GTK_RESPONSE_CLOSE);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]