[PATCH] Scheduled Transaction List

Patrick Schweiger pks at spiffykitty.com
Thu Apr 13 23:10:05 EDT 2006


I use lots of scheduled transactions.  The dialog which lists scheduled 
transactions and shows the calendar on which scheduled transactions are 
highlighted has been bugging me for while.  I incessantly grow the 
window vertically to list more transactions, but wind up with a larger 
calendar.  The patch divvies up additional vertical space amongst the 
transaction list and the calendar. Please consider it for inclusion. Thanks!

-------------- next part --------------
Index: src/gnome/dialog-scheduledxaction.c
===================================================================
--- src/gnome/dialog-scheduledxaction.c	(revision 13777)
+++ src/gnome/dialog-scheduledxaction.c	(working copy)
@@ -1335,13 +1335,16 @@
         int i;
 
         sxList = gnc_book_get_schedxactions( gnc_get_current_book() );
-        g_list_foreach( sxList, putSchedXactionInDialog, sxd );
 
         sx_clist = GTK_CLIST( glade_xml_get_widget( sxd->gxml,
                                                     SX_LIST ) );
+
+        gtk_clist_freeze( sx_clist );
+        g_list_foreach( sxList, putSchedXactionInDialog, sxd );
         for ( i=0; i<3; i++ ) {
                 gtk_clist_set_column_auto_resize( sx_clist, i, TRUE );
         }
+        gtk_clist_thaw( sx_clist );
 }
 
 static
Index: src/gnome/glade/sched-xact.glade
===================================================================
--- src/gnome/glade/sched-xact.glade	(revision 13779)
+++ src/gnome/glade/sched-xact.glade	(working copy)
@@ -5009,7 +5009,7 @@
 	      <child>
 		<widget class="GtkVButtonBox" id="vbuttonbox1">
 		  <property name="visible">True</property>
-		  <property name="layout_style">GTK_BUTTONBOX_SPREAD</property>
+		  <property name="layout_style">GTK_BUTTONBOX_START</property>
 		  <property name="spacing">10</property>
 
 		  <child>
@@ -5119,7 +5119,7 @@
 	</widget>
 	<packing>
 	  <property name="padding">0</property>
-	  <property name="expand">False</property>
+	  <property name="expand">True</property>
 	  <property name="fill">True</property>
 	</packing>
       </child>


More information about the gnucash-devel mailing list