mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 10:15:22 -06:00
Re-indentation of source code.
As usual, re-indentation was done using astyle-1.24 using the following options: astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21430 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
4b6b6b90da
commit
c8ec0537bc
@ -217,7 +217,8 @@ lv_show_splits_free (GNCLotViewer *lv)
|
||||
for (node = split_list; node; node = node->next)
|
||||
{
|
||||
Split *split = node->data;
|
||||
if (NULL == xaccSplitGetLot(split)) {
|
||||
if (NULL == xaccSplitGetLot(split))
|
||||
{
|
||||
filtered_list = g_list_append(filtered_list, split);
|
||||
}
|
||||
}
|
||||
@ -574,12 +575,15 @@ lv_update_split_buttons(GNCLotViewer *lv)
|
||||
Split * split;
|
||||
gtk_widget_set_sensitive(GTK_WIDGET(lv->add_split_to_lot_button), FALSE);
|
||||
gtk_widget_set_sensitive(GTK_WIDGET(lv->remove_split_from_lot_button), FALSE);
|
||||
if (NULL != lv->selected_lot) {
|
||||
if (NULL != lv_get_selected_split(lv,lv->split_free_view) ) {
|
||||
if (NULL != lv->selected_lot)
|
||||
{
|
||||
if (NULL != lv_get_selected_split(lv, lv->split_free_view) )
|
||||
{
|
||||
gtk_widget_set_sensitive(GTK_WIDGET(lv->add_split_to_lot_button), TRUE);
|
||||
}
|
||||
split = lv_get_selected_split(lv, lv->split_in_lot_view);
|
||||
if (NULL != split && TRUE == lv_can_remove_split_from_lot(split,lv->selected_lot)) {
|
||||
if (NULL != split && TRUE == lv_can_remove_split_from_lot(split, lv->selected_lot))
|
||||
{
|
||||
gtk_widget_set_sensitive(GTK_WIDGET(lv->remove_split_from_lot_button), TRUE);
|
||||
}
|
||||
}
|
||||
|
@ -315,7 +315,10 @@ static void treeview_resized(GtkWidget* widget, GtkAllocation* allocation, GncCs
|
||||
/* Get the width. */
|
||||
col_width = gtk_tree_view_column_get_width(gtk_tree_view_get_column(preview->treeview, i));
|
||||
/* Set the minumum width for a column so that drop down selector can be seen. */
|
||||
if (col_width < MIN_COL_WIDTH){col_width = MIN_COL_WIDTH;}
|
||||
if (col_width < MIN_COL_WIDTH)
|
||||
{
|
||||
col_width = MIN_COL_WIDTH;
|
||||
}
|
||||
pcol = gtk_tree_view_get_column(preview->treeview, i);
|
||||
gtk_tree_view_column_set_min_width(pcol, col_width);
|
||||
/* Set ccol's width the same. */
|
||||
|
Loading…
Reference in New Issue
Block a user