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

Back to archive index

Hiroyuki Ikezoe poinc****@ikezo*****
Mon Jan 15 08:58:42 JST 2007


zoeです。

2007-01-14 (日) の 18:06 +0900 に Ryo SHIMIZU さんは書きました:

> ===================================================================
> File: kz-notebook.c    	Status: Up-to-date
> 
>    Working revision:	1.18	Sun Jan 14 09:06:34 2007
>    Repository revision:	1.18	/cvsroot/kazehakase/kazehakase/src/kz-notebook.c,v
> 
> Index: kazehakase/src/kz-notebook.c
> diff -u kazehakase/src/kz-notebook.c:1.17 kazehakase/src/kz-notebook.c:1.18
> --- kazehakase/src/kz-notebook.c:1.17	Sun Jan  7 18:57:55 2007
> +++ kazehakase/src/kz-notebook.c	Sun Jan 14 18:06:34 2007
> @@ -413,12 +413,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;
>  }

これ、呼出側でNULLチェックするようにしてもらえませんか?

posが負の時はNULLを返すようにして、他と区別したいんで。





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