[nautilus-actions] Make the Import assistant transient for the main window
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Make the Import assistant transient for the main window
- Date: Thu, 15 Oct 2009 20:50:22 +0000 (UTC)
commit b3ffa7f0dbd55c37f43922caa9e501e329b825c6
Author: Pierre Wieser <pwieser trychlos org>
Date: Thu Oct 15 19:52:20 2009 +0200
Make the Import assistant transient for the main window
src/nact/nact-assistant-import.c | 12 ++++--------
src/nact/nautilus-actions-config-tool.ui | 1 +
2 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/src/nact/nact-assistant-import.c b/src/nact/nact-assistant-import.c
index c82f4d9..ee5440d 100644
--- a/src/nact/nact-assistant-import.c
+++ b/src/nact/nact-assistant-import.c
@@ -101,7 +101,7 @@ static void instance_init( GTypeInstance *instance, gpointer klass );
static void instance_dispose( GObject *application );
static void instance_finalize( GObject *application );
-static NactAssistantImport *assist_new( BaseApplication *application );
+static NactAssistantImport *assist_new( BaseWindow *parent );
static gchar *window_get_iprefs_window_id( BaseWindow *window );
static gchar *window_get_dialog_name( BaseWindow *dialog );
@@ -250,9 +250,9 @@ instance_finalize( GObject *window )
}
static NactAssistantImport *
-assist_new( BaseApplication *application )
+assist_new( BaseWindow *parent )
{
- return( g_object_new( NACT_ASSISTANT_IMPORT_TYPE, BASE_WINDOW_PROP_APPLICATION, application, NULL ));
+ return( g_object_new( NACT_ASSISTANT_IMPORT_TYPE, BASE_WINDOW_PROP_PARENT, parent, NULL ));
}
/**
@@ -264,13 +264,9 @@ assist_new( BaseApplication *application )
void
nact_assistant_import_run( BaseWindow *main_window )
{
- BaseApplication *appli;
NactAssistantImport *assist;
- appli = BASE_APPLICATION( base_window_get_application( main_window ));
-
- assist = assist_new( appli );
- g_object_set( G_OBJECT( assist ), BASE_WINDOW_PROP_PARENT, main_window, NULL );
+ assist = assist_new( main_window );
g_object_set( G_OBJECT( assist ), BASE_WINDOW_PROP_HAS_OWN_BUILDER, TRUE, NULL );
base_window_run( BASE_WINDOW( assist ));
diff --git a/src/nact/nautilus-actions-config-tool.ui b/src/nact/nautilus-actions-config-tool.ui
index 42afff6..34d2715 100644
--- a/src/nact/nautilus-actions-config-tool.ui
+++ b/src/nact/nautilus-actions-config-tool.ui
@@ -1001,6 +1001,7 @@ Defining several profiles lets you have several commands, each applying with a d
<property name="border_width">12</property>
<property name="title" translatable="yes">Importing actions</property>
<property name="modal">True</property>
+ <property name="type_hint">dialog</property>
<child>
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]