[kazehakase-svn] [3591] 2009-01-29 Hiroyuki Ikezoe <poinc****@ikezo*****>

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Thu Jan 29 09:49:38 JST 2009


Revision: 3591
          http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3591
Author:   ikezoe
Date:     2009-01-29 09:49:38 +0900 (Thu, 29 Jan 2009)

Log Message:
-----------
2009-01-29  Hiroyuki Ikezoe  <poinc****@ikezo*****>

	* src/dialogs/kz-password-manager-dialog.c: Workaround fix on Windows.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/src/dialogs/kz-password-manager-dialog.c

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2009-01-29 00:45:02 UTC (rev 3590)
+++ kazehakase/trunk/ChangeLog	2009-01-29 00:49:38 UTC (rev 3591)
@@ -1,3 +1,7 @@
+2009-01-29  Hiroyuki Ikezoe  <poinc****@ikezo*****>
+
+	* src/dialogs/kz-password-manager-dialog.c: Workaround fix on Windows.
+
 2009-01-27  Hiroyuki Ikezoe  <poinc****@ikezo*****>
 
 	* src/bookmarks/kz-session.c: Fix that auto save flag does not update

Modified: kazehakase/trunk/src/dialogs/kz-password-manager-dialog.c
===================================================================
--- kazehakase/trunk/src/dialogs/kz-password-manager-dialog.c	2009-01-29 00:45:02 UTC (rev 3590)
+++ kazehakase/trunk/src/dialogs/kz-password-manager-dialog.c	2009-01-29 00:49:38 UTC (rev 3591)
@@ -182,7 +182,7 @@
 	GObjectClass *klass = G_OBJECT_CLASS(kz_password_manager_dialog_parent_class);
 	GList *list = NULL, *node;
 	gboolean result;
-	KzEmbedPrefs *embed_prefs = KZ_EMBED_PREFS(kz_embed_new("gecko"));
+	KzEmbedPrefs *embed_prefs;
 
 	object = klass->constructor(type, n_props, props);
 
@@ -194,6 +194,10 @@
 	    			     GTK_WINDOW(password_manager->parent_window));
 
 #warning FIXME! KzProfile should handle password.
+	embed_prefs = KZ_EMBED_PREFS(kz_embed_new("gecko"));
+        if (!embed_prefs)
+                return object;
+
 	result = kz_embed_prefs_get_passwords(embed_prefs, &list);
 	gtk_widget_destroy(GTK_WIDGET(embed_prefs));
 
@@ -320,10 +324,14 @@
 	GtkTreeSelection *selection;
 	GtkTreeModel *model = NULL;
 	GList *list, *node, *pass = NULL;
-	KzEmbedPrefs *embed_prefs = KZ_EMBED_PREFS(kz_embed_new("gecko"));
+	KzEmbedPrefs *embed_prefs;
 
 	g_return_if_fail(KZ_IS_PASSWORD_MANAGER_DIALOG(password_manager));
 
+	embed_prefs = KZ_EMBED_PREFS(kz_embed_new("gecko"));
+        if (!embed_prefs)
+                return;
+
 	selection = gtk_tree_view_get_selection(password_manager->tree_view);
 	
 	list = gtk_tree_selection_get_selected_rows(selection,



More information about the Kazehakase-cvs mailing list
Back to archive index