dont refcount the model twice for the first view

SVN revision: 6009
This commit is contained in:
Till Adam 2002-03-02 16:40:57 +00:00
parent e45338be4d
commit fdb0dbc708
2 changed files with 6 additions and 5 deletions

View File

@ -72,8 +72,10 @@ e_view_model_register_view(E_View_Model *m, E_View *v)
{
D_ENTER;
v->model = m;
m->views = evas_list_append(m->views, v);
e_object_ref (E_OBJECT(v->model));
m->views = evas_list_append(m->views, v);
/* dont ref the first time */
if (m->views->next)
e_object_ref (E_OBJECT(v->model));
D_RETURN;
}

View File

@ -1678,7 +1678,7 @@ e_view_realize(E_View *v)
e_scrollbar_resize(v->scrollbar.v, v->scrollbar.v->w, v->size.h - v->scrollbar.h->h);
e_scrollbar_move(v->scrollbar.h, 0, v->size.h - v->scrollbar.h->h);
e_scrollbar_resize(v->scrollbar.h, v->size.w - v->scrollbar.v->w, v->scrollbar.h->h);
/* I support dnd */
ecore_window_dnd_advertise(v->win.base);
@ -1690,7 +1690,7 @@ e_view_realize(E_View *v)
e_iconbar_realize(v->iconbar);
e_iconbar_set_view_window_spacing(v->iconbar);
}
e_view_bg_reload(v);
/* e_epplet_load_from_layout(v);*/
v->changed = 1;
@ -1763,7 +1763,6 @@ e_view_update(E_View *v)
if (v->options.back_pixmap)
{
Imlib_Updates up;
up = evas_render_updates(v->evas);
/* special code to handle if we are double buffering to a pixmap */
/* and clear sections of the window if they got updated */