Skip to content

Commit

Permalink
Fix a crash introduced in revision 477.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed Apr 16, 2008
1 parent ed88a7f commit d129ccd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/view_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ ViewDir *vd_new(DirViewType type, const gchar *path)
vd->drop_list = NULL;

vd->popup = NULL;
vd->pf = NULL;

vd->widget = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(vd->widget), GTK_SHADOW_IN);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(vd->widget),
GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);

vd->pf = folder_icons_new();

switch(type)
{
case DIRVIEW_LIST: vd = vdlist_new(vd, path); break;
Expand All @@ -79,8 +80,6 @@ ViewDir *vd_new(DirViewType type, const gchar *path)
g_signal_connect(G_OBJECT(vd->widget), "destroy",
G_CALLBACK(vd_destroy_cb), vd);

vd->pf = folder_icons_new();

return vd;
}

Expand Down

0 comments on commit d129ccd

Please sign in to comment.