[gtk-vnc] Remove use of deprecated GTK_STOCK_OK/GTK_STOCK_CANCEL



commit b4eb8abc972cf34701dcd8637d13fea38a486b52
Author: Daniel P. Berrange <dan berrange com>
Date:   Tue Dec 31 12:38:22 2013 -0600

    Remove use of deprecated GTK_STOCK_OK/GTK_STOCK_CANCEL
    
    Signed-off-by: Daniel P. Berrange <dan berrange com>

 examples/gvncviewer.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/examples/gvncviewer.c b/examples/gvncviewer.c
index bedb2da..8a96709 100644
--- a/examples/gvncviewer.c
+++ b/examples/gvncviewer.c
@@ -480,9 +480,9 @@ static void do_set_grab_keys(GtkWidget *menu G_GNUC_UNUSED, GtkWidget *window)
     dialog = gtk_dialog_new_with_buttons ("Key recorder",
                                           GTK_WINDOW(window),
                                           GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
-                                          GTK_STOCK_OK,
+                                          "_Ok",
                                           GTK_RESPONSE_ACCEPT,
-                                          GTK_STOCK_CANCEL,
+                                          "_Cancel",
                                           GTK_RESPONSE_REJECT,
                                           NULL);
 
@@ -547,9 +547,9 @@ static void vnc_credential(GtkWidget *vncdisplay, GValueArray *credList)
         dialog = gtk_dialog_new_with_buttons("Authentication required",
                                              NULL,
                                              0,
-                                             GTK_STOCK_CANCEL,
+                                             "_Cancel",
                                              GTK_RESPONSE_CANCEL,
-                                             GTK_STOCK_OK,
+                                             "_Ok",
                                              GTK_RESPONSE_OK,
                                              NULL);
         gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);


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