Mercurial > geeqie.yaz
comparison src/view_file_icon.c @ 1365:249bf204004a
When g_new0() is used, drop redundant initializations to NULL, FALSE or 0.
author | zas_ |
---|---|
date | Sun, 01 Mar 2009 21:06:55 +0000 |
parents | 4a3ae0e6f1eb |
children | a3d3208b0c50 |
comparison
equal
deleted
inserted
replaced
1364:17f80c6be6b6 | 1365:249bf204004a |
---|---|
2473 GtkTreeSelection *selection; | 2473 GtkTreeSelection *selection; |
2474 gint i; | 2474 gint i; |
2475 | 2475 |
2476 vf->info = g_new0(ViewFileInfoIcon, 1); | 2476 vf->info = g_new0(ViewFileInfoIcon, 1); |
2477 | 2477 |
2478 VFICON(vf)->selection = NULL; | |
2479 VFICON(vf)->prev_selection = NULL; | |
2480 | |
2481 VFICON(vf)->tip_window = NULL; | |
2482 VFICON(vf)->tip_delay_id = -1; | 2478 VFICON(vf)->tip_delay_id = -1; |
2483 | |
2484 VFICON(vf)->focus_row = 0; | |
2485 VFICON(vf)->focus_column = 0; | |
2486 VFICON(vf)->focus_id = NULL; | |
2487 | |
2488 VFICON(vf)->show_text = options->show_icon_names; | 2479 VFICON(vf)->show_text = options->show_icon_names; |
2489 | 2480 |
2490 store = gtk_list_store_new(1, G_TYPE_POINTER); | 2481 store = gtk_list_store_new(1, G_TYPE_POINTER); |
2491 vf->listview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)); | 2482 vf->listview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)); |
2492 g_object_unref(store); | 2483 g_object_unref(store); |