[Kazehakase-cvs] CVS update: kazehakase/src/bookmarks

Back to archive index

Hiroyuki Ikezoe ikezo****@users*****
Sat Jan 6 09:28:47 JST 2007


Index: kazehakase/src/bookmarks/kz-proxy-folder.c
diff -u kazehakase/src/bookmarks/kz-proxy-folder.c:1.7 kazehakase/src/bookmarks/kz-proxy-folder.c:1.8
--- kazehakase/src/bookmarks/kz-proxy-folder.c:1.7	Sat Dec  2 18:22:27 2006
+++ kazehakase/src/bookmarks/kz-proxy-folder.c	Sat Jan  6 09:28:47 2007
@@ -18,7 +18,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- *  $Id: kz-proxy-folder.c,v 1.7 2006/12/02 09:22:27 ikezoe Exp $
+ *  $Id: kz-proxy-folder.c,v 1.8 2007/01/06 00:28:47 ikezoe Exp $
  */
 
 #include "kz-proxy-folder.h"
@@ -99,7 +99,7 @@
 create_current_page_bookmark (KzBookmark *tab)
 {
 	KzBookmark *cur_page;
-	gint cur_pos;
+	guint cur_pos;
 	GList *pages;
 	KzBookmark *new;
 
@@ -109,10 +109,9 @@
 	cur_page = KZ_BOOKMARK(g_list_nth_data(pages, cur_pos));
 	g_list_free(pages);
 
-	new = kz_bookmark_new_with_attrs(kz_bookmark_get_title(cur_page),
-					 kz_bookmark_get_link(cur_page),
+	new = kz_bookmark_new_with_attrs(cur_page ? kz_bookmark_get_title(cur_page) : "",
+					 cur_page ? kz_bookmark_get_link(cur_page) : "",
 					 NULL);
-
 	return new;
 }
 
@@ -153,11 +152,11 @@
 
 	/* set signals */
 	g_signal_connect(priv->bookmark, "insert-child",
-			       G_CALLBACK(cb_folder_insert_child),
-			       proxy);
+			 G_CALLBACK(cb_folder_insert_child),
+			 proxy);
 	g_signal_connect(priv->bookmark, "remove-child",
-			       G_CALLBACK(cb_folder_remove_child),
-			       proxy);
+			 G_CALLBACK(cb_folder_remove_child),
+			 proxy);
 
 	return object;
 }
@@ -250,6 +249,7 @@
 {
 	KzBookmark *new;
 	KzProxyFolderPriv *priv = KZ_PROXY_FOLDER_GET_PRIVATE(proxy);
+
 	new = create_current_page_bookmark(child);
 
 	if (sibling)


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