[med-svn] [aghermann] 01/08: use plain C strings in place of GTK_STOCK_*, as deprecated in GTK+-3.10

andrei zavada hmmr-guest at moszumanska.debian.org
Wed May 14 21:23:32 UTC 2014


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch master
in repository aghermann.

commit 12360ecbf933efcfe8540572d288974551746fe5
Author: Andrei Zavada <hmmr at ra>
Date:   Wed May 14 02:13:55 2014 +0300

    use plain C strings in place of GTK_STOCK_*, as deprecated in GTK+-3.10
---
 upstream/src/aghermann/ui/mf/mf_cb.cc          | 4 ++--
 upstream/src/aghermann/ui/mw/simulations_cb.cc | 4 ++--
 upstream/src/aghermann/ui/sf/hypnogram.cc      | 8 ++++----
 upstream/src/aghermann/ui/sm/sm_cb.cc          | 4 ++--
 upstream/src/tools/edfhed-gtk.cc               | 4 ++--
 5 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/upstream/src/aghermann/ui/mf/mf_cb.cc b/upstream/src/aghermann/ui/mf/mf_cb.cc
index 29f0888..116d958 100644
--- a/upstream/src/aghermann/ui/mf/mf_cb.cc
+++ b/upstream/src/aghermann/ui/mf/mf_cb.cc
@@ -69,8 +69,8 @@ daMFProfile_button_press_event_cb(
                                         "Export Profile Snapshot",
                                         NULL,
                                         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);
                         g_object_ref_sink( f_chooser);
                         GtkFileFilter *file_filter = gtk_file_filter_new();
diff --git a/upstream/src/aghermann/ui/mw/simulations_cb.cc b/upstream/src/aghermann/ui/mw/simulations_cb.cc
index 5eb53f4..4a269ce 100644
--- a/upstream/src/aghermann/ui/mw/simulations_cb.cc
+++ b/upstream/src/aghermann/ui/mw/simulations_cb.cc
@@ -186,8 +186,8 @@ iSimulationsReportGenerate_activate_cb(
                         "Export Simulation Details",
                         NULL,
                         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( f_chooser) == GTK_RESPONSE_ACCEPT ) {
                 string selected = gtk_file_chooser_get_filename( (GtkFileChooser*)f_chooser);
diff --git a/upstream/src/aghermann/ui/sf/hypnogram.cc b/upstream/src/aghermann/ui/sf/hypnogram.cc
index e4f51c1..3d68071 100644
--- a/upstream/src/aghermann/ui/sf/hypnogram.cc
+++ b/upstream/src/aghermann/ui/sf/hypnogram.cc
@@ -135,8 +135,8 @@ do_dialog_import_hypnogram()
                         "Import Scores",
                         NULL,
                         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);
         if ( gtk_dialog_run( (GtkDialog*)f_chooser) == GTK_RESPONSE_ACCEPT ) {
                 gchar *fname = gtk_file_chooser_get_filename( (GtkFileChooser*)f_chooser);
@@ -177,8 +177,8 @@ do_dialog_export_hypnogram() const
                         "Export Scores",
                         NULL,
                         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( (GtkDialog*)f_chooser) == GTK_RESPONSE_ACCEPT ) {
                 gchar *fname = gtk_file_chooser_get_filename( (GtkFileChooser*)f_chooser);
diff --git a/upstream/src/aghermann/ui/sm/sm_cb.cc b/upstream/src/aghermann/ui/sm/sm_cb.cc
index 2eaa6ab..ebe9107 100644
--- a/upstream/src/aghermann/ui/sm/sm_cb.cc
+++ b/upstream/src/aghermann/ui/sm/sm_cb.cc
@@ -126,8 +126,8 @@ bSessionChooserCreateNew_clicked_cb(
                         "Locate New Experiment Directory",
                         NULL,
                         GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
-                        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( (GtkDialog*)dir_chooser) == GTK_RESPONSE_ACCEPT ) {
diff --git a/upstream/src/tools/edfhed-gtk.cc b/upstream/src/tools/edfhed-gtk.cc
index 14c1686..4deb9b5 100644
--- a/upstream/src/tools/edfhed-gtk.cc
+++ b/upstream/src/tools/edfhed-gtk.cc
@@ -120,8 +120,8 @@ main( int argc, char **argv)
                                 "edfhed-gtk: Choose a file to edit",
                                 NULL,
                                 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);
                         GtkFileFilter *file_filter = gtk_file_filter_new();
                         gtk_file_filter_set_name( file_filter, "EDF recordings");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list