comparison src/collect-table.c @ 442:4b2d7f9af171

Big whitespaces cleanup: - drop whitespaces at end of lines - convert eight spaces to tab at start of lines - drop spurious spaces mixed with tabs - remove empty lines at end of files
author zas_
date Sun, 20 Apr 2008 13:04:57 +0000
parents 767b53cd9ab7
children ddabc4873a3f
comparison
equal deleted inserted replaced
441:08eb7137cd94 442:4b2d7f9af171
381 work = g_list_find(ct->cd->list, start); 381 work = g_list_find(ct->cd->list, start);
382 while (work) 382 while (work)
383 { 383 {
384 info = work->data; 384 info = work->data;
385 collection_table_select_util(ct, info, select); 385 collection_table_select_util(ct, info, select);
386 386
387 if (work->data != end) 387 if (work->data != end)
388 work = work->next; 388 work = work->next;
389 else 389 else
390 work = NULL; 390 work = NULL;
391 } 391 }
678 { 678 {
679 CollectTable *ct = data; 679 CollectTable *ct = data;
680 GList *list; 680 GList *list;
681 681
682 if (!ct->click_info) return; 682 if (!ct->click_info) return;
683 683
684 if (INFO_SELECTED(ct->click_info)) 684 if (INFO_SELECTED(ct->click_info))
685 { 685 {
686 list = g_list_copy(ct->selection); 686 list = g_list_copy(ct->selection);
687 } 687 }
688 else 688 else
810 G_CALLBACK(collection_table_popup_save_as_cb), ct); 810 G_CALLBACK(collection_table_popup_save_as_cb), ct);
811 menu_item_add_divider(menu); 811 menu_item_add_divider(menu);
812 menu_item_add_stock(menu, _("_Find duplicates..."), GTK_STOCK_FIND, 812 menu_item_add_stock(menu, _("_Find duplicates..."), GTK_STOCK_FIND,
813 G_CALLBACK(collection_table_popup_find_dupes_cb), ct); 813 G_CALLBACK(collection_table_popup_find_dupes_cb), ct);
814 menu_item_add_stock_sensitive(menu, _("Print..."), GTK_STOCK_PRINT, over_icon, 814 menu_item_add_stock_sensitive(menu, _("Print..."), GTK_STOCK_PRINT, over_icon,
815 G_CALLBACK(collection_table_popup_print_cb), ct); 815 G_CALLBACK(collection_table_popup_print_cb), ct);
816 816
817 return menu; 817 return menu;
818 } 818 }
819 /* 819 /*
820 *------------------------------------------------------------------- 820 *-------------------------------------------------------------------
2008 gint total; 2008 gint total;
2009 2009
2010 if (!ct->click_info) return; 2010 if (!ct->click_info) return;
2011 2011
2012 selected = INFO_SELECTED(ct->click_info); 2012 selected = INFO_SELECTED(ct->click_info);
2013 2013
2014 switch (info) 2014 switch (info)
2015 { 2015 {
2016 case TARGET_APP_COLLECTION_MEMBER: 2016 case TARGET_APP_COLLECTION_MEMBER:
2017 if (selected) 2017 if (selected)
2018 { 2018 {
2175 { 2175 {
2176 CollectTable *ct = data; 2176 CollectTable *ct = data;
2177 2177
2178 collection_table_scroll(ct, FALSE); 2178 collection_table_scroll(ct, FALSE);
2179 } 2179 }
2180 2180
2181 static void collection_table_dnd_init(CollectTable *ct) 2181 static void collection_table_dnd_init(CollectTable *ct)
2182 { 2182 {
2183 gtk_drag_source_set(ct->listview, GDK_BUTTON1_MASK | GDK_BUTTON2_MASK, 2183 gtk_drag_source_set(ct->listview, GDK_BUTTON1_MASK | GDK_BUTTON2_MASK,
2184 collection_drag_types, n_collection_drag_types, 2184 collection_drag_types, n_collection_drag_types,
2185 GDK_ACTION_COPY | GDK_ACTION_MOVE | GDK_ACTION_LINK); 2185 GDK_ACTION_COPY | GDK_ACTION_MOVE | GDK_ACTION_LINK);