summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-list-view.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-03-17 00:20:14 +0100
committerPablo Barciela <[email protected]>2018-03-17 00:35:43 +0100
commit4fb359018441a9a80984a7a94be1a939efc51bde (patch)
treeaf0a1a561522282f1f50e1d593a9eb5d19e616d1 /src/file-manager/fm-list-view.c
parente0c69f80861b85a1e34541875858bfbd9bdea240 (diff)
downloadcaja-4fb359018441a9a80984a7a94be1a939efc51bde.tar.bz2
caja-4fb359018441a9a80984a7a94be1a939efc51bde.tar.xz
avoid gtk_dialog_new_with_buttons with stock ids
Diffstat (limited to 'src/file-manager/fm-list-view.c')
-rw-r--r--src/file-manager/fm-list-view.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c
index 48d783e5..d2353e7a 100644
--- a/src/file-manager/fm-list-view.c
+++ b/src/file-manager/fm-list-view.c
@@ -36,6 +36,7 @@
#include <eel/eel-gdk-extensions.h>
#include <eel/eel-glib-extensions.h>
#include <eel/eel-gtk-macros.h>
+#include <eel/eel-stock-dialogs.h>
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
@@ -2531,11 +2532,16 @@ create_column_editor (FMListView *view)
str = g_strdup_printf (_("%s Visible Columns"), name);
g_free (name);
- window = gtk_dialog_new_with_buttons (str,
- GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (view))),
- GTK_DIALOG_DESTROY_WITH_PARENT,
- "gtk-close", GTK_RESPONSE_CLOSE,
- NULL);
+ window = gtk_dialog_new ();
+ gtk_window_set_title (GTK_WINDOW (window), str);
+ gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (view))));
+ gtk_window_set_destroy_with_parent (GTK_WINDOW (window), TRUE);
+
+ eel_dialog_add_button (GTK_DIALOG (window),
+ _("_Close"),
+ "window-close",
+ GTK_RESPONSE_CLOSE);
+
g_free (str);
g_signal_connect (window, "response",
G_CALLBACK (column_editor_response_callback), NULL);