[nautilus-actions] NAImporterAsk: keep window size and position between invocations
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] NAImporterAsk: keep window size and position between invocations
- Date: Fri, 2 Dec 2011 10:50:47 +0000 (UTC)
commit 07f09da8fa2dd7808c560a2bfcd5270930150c66
Author: Pierre Wieser <pwieser trychlos org>
Date: Thu Dec 1 18:27:11 2011 +0100
NAImporterAsk: keep window size and position between invocations
ChangeLog | 5 +++++
src/core/na-importer-ask.c | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index dedda7b..fbab9b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-01 Pierre Wieser <pwieser trychlos org>
+
+ * src/core/na-importer-ask.c (na_importer_ask_user):
+ Save window size and position when quitting, restoring it on next init.
+
2011-11-30 Pierre Wieser <pwieser trychlos org>
* src/core/na-gtk-utils.c:
diff --git a/src/core/na-importer-ask.c b/src/core/na-importer-ask.c
index bf60135..70efcfc 100644
--- a/src/core/na-importer-ask.c
+++ b/src/core/na-importer-ask.c
@@ -40,6 +40,7 @@
#include "na-gtk-utils.h"
#include "na-iprefs.h"
#include "na-importer-ask.h"
+#include "na-settings.h"
/* private class data
*/
@@ -302,6 +303,7 @@ na_importer_ask_user( const NAObjectItem *importing, const NAObjectItem *existin
} while ( !on_dialog_response( dialog, code ));
mode = dialog->private->mode;
+ na_gtk_utils_save_window_position( dialog->private->toplevel, NA_IPREFS_IMPORT_ASK_USER_WSP );
if( parms->parent ){
gtk_widget_hide( GTK_WIDGET( dialog->private->toplevel ));
@@ -366,6 +368,7 @@ init_dialog( NAImporterAsk *editor )
button = na_gtk_utils_search_for_child_widget( GTK_CONTAINER( editor->private->toplevel ), "AskKeepChoiceButton" );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( button ), editor->private->parms->keep_choice );
+ na_gtk_utils_restore_window_position( editor->private->toplevel, NA_IPREFS_IMPORT_ASK_USER_WSP );
gtk_widget_show_all( GTK_WIDGET( editor->private->toplevel ));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]