Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_notebook.c
Log Message:
Use a little more care when picking the correct page to show.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_notebook.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- ewl_notebook.c 13 Nov 2003 23:38:01 -0000 1.35
+++ ewl_notebook.c 14 Nov 2003 03:37:08 -0000 1.36
@@ -556,12 +556,15 @@
i = 0;
ewd_list_goto_first(c->children);
- while (i != t && (child = ewd_list_next(c->children))) {
- if (child != n->tab_box)
+ while ((child = ewd_list_next(c->children))) {
+ if (child != n->tab_box) {
+ if (i == t)
+ break;
i++;
+ }
}
- if (child == n->visible_page)
+ if (!child || child == n->visible_page)
DRETURN(DLEVEL_STABLE);
ewl_widget_hide(n->visible_page);
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs