[gnumeric] Solver: avoid deprecated calls.



commit fde98dd2cd946a73d43c7d29426ebaabff6c4425
Author: Morten Welinder <terra gnome org>
Date:   Sun Jan 4 13:06:05 2015 -0500

    Solver: avoid deprecated calls.
    
    We still use a stock icon for cancel, though.

 src/tools/gnm-solver.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/tools/gnm-solver.c b/src/tools/gnm-solver.c
index 9928fd5..4c3c539 100644
--- a/src/tools/gnm-solver.c
+++ b/src/tools/gnm-solver.c
@@ -2047,10 +2047,10 @@ gnm_sub_solver_locate_binary (const char *binary, const char *solver,
                               "title", title,
                               NULL));
        g_free (title);
-       gtk_dialog_add_buttons (GTK_DIALOG (fsel),
-                               GNM_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
-                               GTK_STOCK_EXECUTE, GTK_RESPONSE_OK,
-                               NULL);
+       go_gtk_dialog_add_button (GTK_DIALOG (fsel), GNM_STOCK_CANCEL,
+                                 "gtk-cancel", GTK_RESPONSE_CANCEL);
+       go_gtk_dialog_add_button (GTK_DIALOG (fsel), GNM_STOCK_OK,
+                                 "system-run", GTK_RESPONSE_OK);
        g_object_ref (fsel);
        if (go_gtk_file_sel_dialog (parent, GTK_WIDGET (fsel))) {
                path = gtk_file_chooser_get_filename (fsel);


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