[nautilus-actions] NactApplication::appli_create_windows(): fix return value
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] NactApplication::appli_create_windows(): fix return value
- Date: Wed, 11 Jan 2012 22:10:24 +0000 (UTC)
commit 5b0dab616be2d4acf1b0d4d7e17d91a7a2c1e73c
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Jan 9 06:56:23 2012 +0100
NactApplication::appli_create_windows(): fix return value
ChangeLog | 2 ++
src/nact/nact-application.c | 5 ++++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3ac3451..e72c40b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2012-01-09 Pierre Wieser <pwieser trychlos org>
+ * src/nact/nact-application.c (appli_create_windows): Fix return value.
+
* src/nact/base-application.h: Fix comments.
* src/nact/base-application.c (base_application_run):
diff --git a/src/nact/nact-application.c b/src/nact/nact-application.c
index 12183cc..5b47e6c 100644
--- a/src/nact/nact-application.c
+++ b/src/nact/nact-application.c
@@ -312,14 +312,17 @@ appli_create_windows( BaseApplication *application )
g_debug( "%s: application=%p", thisfn, ( void * ) application );
+ ret = FALSE;
+
/* creating main window
*/
window = nact_main_window_new( NACT_APPLICATION( application ));
+
if( window ){
g_return_val_if_fail( NACT_IS_MAIN_WINDOW( window ), FALSE );
ret = TRUE;
+
} else {
- ret = FALSE;
g_object_set( G_OBJECT( application ), BASE_PROP_CODE, BASE_EXIT_CODE_WINDOW, NULL );
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]