[gnome-color-manager] GtkStock is deprecated



commit c35954c82b883b1707dd8de53780b414a85f53cc
Author: Richard Hughes <richard hughsie com>
Date:   Tue Jul 16 12:11:04 2013 +0100

    GtkStock is deprecated

 src/gcm-calibrate.c |   12 ++++++------
 src/gcm-viewer.c    |    4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/gcm-calibrate.c b/src/gcm-calibrate.c
index b5e0e5e..a0b8bcc 100644
--- a/src/gcm-calibrate.c
+++ b/src/gcm-calibrate.c
@@ -680,8 +680,8 @@ gcm_calibrate_camera_get_reference_image (const gchar *directory, GtkWindow *win
         * a bit like this: http://www.colorreference.de/targets/target.jpg */
        dialog = gtk_file_chooser_dialog_new (_("Select calibration target image"), window,
                                               GTK_FILE_CHOOSER_ACTION_OPEN,
-                                              GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
-                                              GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+                                              _("_Cancel"), GTK_RESPONSE_CANCEL,
+                                              _("_Open"), GTK_RESPONSE_ACCEPT,
                                              NULL);
        gtk_window_set_icon_name (GTK_WINDOW (dialog), GCM_STOCK_ICON);
        gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER(dialog), directory);
@@ -725,8 +725,8 @@ gcm_calibrate_camera_get_reference_data (const gchar *directory, GtkWindow *wind
        /* TRANSLATORS: dialog for file->open dialog */
        dialog = gtk_file_chooser_dialog_new (_("Select CIE reference values file"), window,
                                               GTK_FILE_CHOOSER_ACTION_OPEN,
-                                              GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
-                                              GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+                                              _("_Cancel"), GTK_RESPONSE_CANCEL,
+                                              _("_Open"), GTK_RESPONSE_ACCEPT,
                                              NULL);
        gtk_window_set_icon_name (GTK_WINDOW (dialog), GCM_STOCK_ICON);
        gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER(dialog), directory);
@@ -820,8 +820,8 @@ gcm_calibrate_file_chooser_get_working_path (GcmCalibrate *calibrate, GtkWindow
        /* TRANSLATORS: dialog for file->open dialog */
        dialog = gtk_file_chooser_dialog_new (_("Select ICC Profile File"), window,
                                               GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
-                                              GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
-                                              _("Open"), GTK_RESPONSE_ACCEPT,
+                                              _("_Cancel"), GTK_RESPONSE_CANCEL,
+                                              _("_Open"), GTK_RESPONSE_ACCEPT,
                                              NULL);
        gtk_window_set_icon_name (GTK_WINDOW (dialog), GCM_STOCK_ICON);
        gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER(dialog), current_folder);
diff --git a/src/gcm-viewer.c b/src/gcm-viewer.c
index 86ed6ee..5c1e31e 100644
--- a/src/gcm-viewer.c
+++ b/src/gcm-viewer.c
@@ -446,8 +446,8 @@ gcm_viewer_file_chooser_get_icc_profile (GcmViewerPrivate *viewer)
        /* TRANSLATORS: dialog for file->open dialog */
        dialog = gtk_file_chooser_dialog_new (_("Select ICC Profile File"), window,
                                               GTK_FILE_CHOOSER_ACTION_OPEN,
-                                              GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
-                                              _("Import"), GTK_RESPONSE_ACCEPT,
+                                              _("_Cancel"), GTK_RESPONSE_CANCEL,
+                                              _("_Import"), GTK_RESPONSE_ACCEPT,
                                              NULL);
        gtk_window_set_icon_name (GTK_WINDOW (dialog), GCM_STOCK_ICON);
        gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER(dialog), g_get_home_dir ());


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]