[Kazehakase-cvs] CVS update: kazehakase/src

Zurück zum Archiv-Index

Hiroyuki Ikezoe ikezo****@users*****
Sat Jan 6 09:25:32 JST 2007


Index: kazehakase/src/kz-window.c
diff -u kazehakase/src/kz-window.c:1.305 kazehakase/src/kz-window.c:1.306
--- kazehakase/src/kz-window.c:1.305	Fri Jan  5 19:51:46 2007
+++ kazehakase/src/kz-window.c	Sat Jan  6 09:25:32 2007
@@ -797,7 +797,7 @@
 GtkWidget *
 kz_window_open_new_tab (KzWindow *kz, const gchar *url)
 {
-	return kz_window_open_new_tab_with_parent (kz, url, NULL);
+	return kz_window_open_new_tab_with_parent(kz, url, NULL);
 }
 
 
@@ -880,6 +880,7 @@
 {
 	GList *childtabs, *tabnode;
 	KzWindowPrivate *priv;
+	gint pos;
 	g_return_if_fail(KZ_IS_WINDOW(kz));
 
 	priv = KZ_WINDOW_GET_PRIVATE (kz);
@@ -916,6 +917,9 @@
 
 	}
 	g_list_free(childtabs);
+
+	pos = kz_bookmark_get_current(tabs);
+	gtk_notebook_set_current_page(GTK_NOTEBOOK(kz->notebook), pos);
 }
 
 
@@ -2218,7 +2222,6 @@
 		child = next;
 	}
 	
-	/* FIXME! should move to specifing tab like kz_window_close_tab() */
 	g_node_destroy(node);
 	g_signal_emit(kz, kz_window_signals[REMOVE_TAB_SIGNAL],
 		      0, kzembed);
Index: kazehakase/src/kz-app.c
diff -u kazehakase/src/kz-app.c:1.19 kazehakase/src/kz-app.c:1.20
--- kazehakase/src/kz-app.c:1.19	Fri Jan  5 19:51:46 2007
+++ kazehakase/src/kz-app.c	Sat Jan  6 09:25:32 2007
@@ -399,7 +399,6 @@
 	for (node = list; node; node = g_list_next(node))
 	{
 		KzWindow *window;
-		gint pos;
 		KzBookmark *window_bookmark = KZ_BOOKMARK(node->data);
 
 		if (!window_node)
@@ -414,8 +413,6 @@
 		}
 
 		kz_window_restore_tabs(window, window_bookmark);
-		pos = kz_bookmark_get_current(window_bookmark);
-		gtk_notebook_set_current_page(GTK_NOTEBOOK(window->notebook), pos);
 	}
 	g_list_free(list);
 


More information about the Kazehakase-cvs mailing list
Zurück zum Archiv-Index