Mercurial > geeqie
diff src/collect-table.c @ 1367:fe4da037be21
When g_new0() is used, drop redundant initializations to NULL, FALSE or 0, second pass.
author | zas_ |
---|---|
date | Sun, 01 Mar 2009 23:14:19 +0000 |
parents | 4a3ae0e6f1eb |
children | a0bd58a6535f |
line wrap: on
line diff
--- a/src/collect-table.c Sun Mar 01 21:35:18 2009 +0000 +++ b/src/collect-table.c Sun Mar 01 23:14:19 2009 +0000 @@ -2437,35 +2437,14 @@ gint i; ct = g_new0(CollectTable, 1); + ct->cd = cd; - ct->columns = 0; - ct->rows = 0; - - ct->selection = NULL; - ct->prev_selection = NULL; - - ct->tip_window = NULL; ct->tip_delay_id = -1; - - ct->marker_window = NULL; - ct->marker_info = NULL; - - ct->status_label = NULL; - ct->extra_label = NULL; - - ct->focus_row = 0; - ct->focus_column = 0; - ct->focus_info = NULL; - ct->show_text = options->show_icon_names; ct->sync_idle_id = -1; ct->drop_idle_id = -1; - ct->popup = NULL; - ct->drop_info = NULL; - ct->drop_list = NULL; - ct->scrolled = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(ct->scrolled), GTK_SHADOW_IN); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(ct->scrolled),