[kazehakase-svn] [3164] * src/kz-notebook.c: kz_notebook_open_new_tab_at_pos() returns NULL only

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Thu Apr 12 12:09:14 JST 2007


Revision: 3164
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3164
Author:   ikezoe
Date:     2007-04-12 12:09:14 +0900 (Thu, 12 Apr 2007)

Log Message:
-----------
* src/kz-notebook.c: kz_notebook_open_new_tab_at_pos() returns NULL only
when position is out of range. Saving session now works well.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/src/kz-notebook.c

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2007-04-11 08:32:18 UTC (rev 3163)
+++ kazehakase/trunk/ChangeLog	2007-04-12 03:09:14 UTC (rev 3164)
@@ -1,3 +1,8 @@
+2007-04-12  Łukasz Krotowski <lukas****@gmail*****>
+
+	* src/kz-notebook.c: kz_notebook_open_new_tab_at_pos() returns NULL only
+	when position is out of range. Saving session now works well.
+
 2007-04-11  Kouhei Sutou  <kou****@cozmi*****>
 
 	* src/widgets/kz-comboboxentry.[ch]: removed needless codes.

Modified: kazehakase/trunk/src/kz-notebook.c
===================================================================
--- kazehakase/trunk/src/kz-notebook.c	2007-04-11 08:32:18 UTC (rev 3163)
+++ kazehakase/trunk/src/kz-notebook.c	2007-04-12 03:09:14 UTC (rev 3164)
@@ -424,12 +424,9 @@
 	/* add to this notebook's history */
 	priv->open_hist = g_list_prepend(priv->open_hist, embed);
 
-	if(pos >= 0)
-	{
-		sibembed = gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook), pos);
-		sibtab = KZ_TAB_LABEL(gtk_notebook_get_tab_label(GTK_NOTEBOOK(notebook),
-				      sibembed));
-	}
+	sibembed = gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook), pos);
+	sibtab = KZ_TAB_LABEL(gtk_notebook_get_tab_label(GTK_NOTEBOOK(notebook),
+				sibembed));
 	return sibtab;
 }
 




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