[gedit] Replace dialog: remove the buttons from the private struct



commit 1f3a52d50e2d8f86750d846690cd5d888d54b7c9
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jul 1 11:00:42 2013 +0200

    Replace dialog: remove the buttons from the private struct
    
    They are used nowhere in the code. What glues them with the code is the
    dialog response IDs.

 gedit/gedit-replace-dialog.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gedit/gedit-replace-dialog.c b/gedit/gedit-replace-dialog.c
index 0dec808..f945fa0 100644
--- a/gedit/gedit-replace-dialog.c
+++ b/gedit/gedit-replace-dialog.c
@@ -47,9 +47,6 @@ struct _GeditReplaceDialogPrivate
        GtkWidget *entire_word_checkbutton;
        GtkWidget *backwards_checkbutton;
        GtkWidget *wrap_around_checkbutton;
-       GtkWidget *find_button;
-       GtkWidget *replace_button;
-       GtkWidget *replace_all_button;
 
        gboolean   ui_error;
 };
@@ -135,9 +132,6 @@ gedit_replace_dialog_class_init (GeditReplaceDialogClass *klass)
        gtk_widget_class_bind_child (widget_class, GeditReplaceDialogPrivate, entire_word_checkbutton);
        gtk_widget_class_bind_child (widget_class, GeditReplaceDialogPrivate, backwards_checkbutton);
        gtk_widget_class_bind_child (widget_class, GeditReplaceDialogPrivate, wrap_around_checkbutton);
-       gtk_widget_class_bind_child (widget_class, GeditReplaceDialogPrivate, find_button);
-       gtk_widget_class_bind_child (widget_class, GeditReplaceDialogPrivate, replace_button);
-       gtk_widget_class_bind_child (widget_class, GeditReplaceDialogPrivate, replace_all_button);
 
        g_type_class_add_private (object_class, sizeof (GeditReplaceDialogPrivate));
 }


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