summaryrefslogtreecommitdiff
path: root/src/nautilus-properties-window.h
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@redhat.com>2018-08-07 12:40:42 +0200
committerCarlos Soriano <csoriano1618@gmail.com>2018-08-07 19:14:10 +0000
commitc8c2fab214d645d99fdd2a768842b7b43d4207b7 (patch)
tree0acf88860ce0d831588b95efddf024346db60528 /src/nautilus-properties-window.h
parentf49d1a3f08695cb58bd4a7efd87cf1371f6399e5 (diff)
downloadnautilus-c8c2fab214d645d99fdd2a768842b7b43d4207b7.tar.gz
properties-window: Keep alive properties window if called through DBus
The properties window can be used from within Nautilus, and therefore a dialog window makes sense, or from outside Nautilus, such as the FileManager dbus free desktop standard. In the later, used for integration with things like desktop icons extensions, we need to keep the application alive since GApplication would close the application if no application window is alive after a timeout. To fix this, this work makes the window hint a regular window if used from those cases.
Diffstat (limited to 'src/nautilus-properties-window.h')
-rw-r--r--src/nautilus-properties-window.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nautilus-properties-window.h b/src/nautilus-properties-window.h
index d110bc245..b3f1a8dbb 100644
--- a/src/nautilus-properties-window.h
+++ b/src/nautilus-properties-window.h
@@ -31,6 +31,10 @@ G_DECLARE_FINAL_TYPE (NautilusPropertiesWindow, nautilus_properties_window,
NAUTILUS, PROPERTIES_WINDOW,
GtkDialog)
-void nautilus_properties_window_present (GList *files,
- GtkWidget *parent_widget,
- const gchar *startup_id);
+typedef void (* NautilusPropertiesWindowCallback) (gpointer callback_data);
+
+void nautilus_properties_window_present (GList *files,
+ GtkWidget *parent_widget,
+ const gchar *startup_id,
+ NautilusPropertiesWindowCallback callback,
+ gpointer callback_data);