summaryrefslogtreecommitdiff
path: root/saedit/search.h
diff options
context:
space:
mode:
Diffstat (limited to 'saedit/search.h')
-rw-r--r--saedit/search.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/saedit/search.h b/saedit/search.h
index ff6185f..e08a448 100644
--- a/saedit/search.h
+++ b/saedit/search.h
@@ -37,7 +37,7 @@ static gboolean find_text() {
return FALSE;
}
-static GtkWidget *find_window_new(GtkWindow *parent) {
+static GtkWidget *show_find_dialog() {
GtkWidget *dialog;
GtkWidget *vbox;
GtkWidget *entry;
@@ -45,7 +45,7 @@ static GtkWidget *find_window_new(GtkWindow *parent) {
GtkWidget *label;
dialog = gtk_dialog_new_with_buttons (_("Find"),
- parent,
+ win,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_FIND,
GTK_RESPONSE_NONE,
@@ -63,5 +63,5 @@ static GtkWidget *find_window_new(GtkWindow *parent) {
"response",
G_CALLBACK(find_text),
NULL);
- return dialog;
+ gtk_widget_show_all(dialog);
}