bug fixes

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2470 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2000-06-14 08:05:41 +00:00
parent 0df20221c8
commit accb6afc65
5 changed files with 28 additions and 6 deletions

View File

@ -73,7 +73,8 @@ install-data-local: libgncswig.la
elif [ -f ${perllibdir}/libgncswig.so.1.1 ]; then \
cd ${perllibdir} && ln -s libgncswig.so.1.1 gnucash.so; \
else \
echo "Can't find libgncswig shared library!"; \
echo "Can't find libgncswig shared library!" \
exit 1; \
fi
uninstall-local:

View File

@ -455,7 +455,8 @@ install-data-local: libgncswig.la
elif [ -f ${perllibdir}/libgncswig.so.1.1 ]; then \
cd ${perllibdir} && ln -s libgncswig.so.1.1 gnucash.so; \
else \
echo "Can't find libgncswig shared library!"; \
echo "Can't find libgncswig shared library!" \
exit 1; \
fi
uninstall-local:

View File

@ -1084,6 +1084,8 @@ item_edit_show_list (ItemEdit *item_edit)
GTK_ARROW_UP, GTK_SHADOW_OUT);
gtk_widget_grab_focus(GTK_WIDGET(item_edit->item_list->clist));
gnc_item_list_show_selected(item_edit->item_list);
}

View File

@ -76,10 +76,10 @@ gnc_item_list_append(GNCItemList *item_list, char *string)
void
gnc_item_list_select(GNCItemList *item_list, const char *string)
{
GtkVisibility visibility;
gint row = 0;
gchar *text;
g_return_if_fail(item_list != NULL);
g_return_if_fail(IS_GNC_ITEM_LIST(item_list));
if (string == NULL) {
@ -99,15 +99,31 @@ gnc_item_list_select(GNCItemList *item_list, const char *string)
gtk_clist_select_row(item_list->clist, row, 0);
gtk_clist_thaw(item_list->clist);
visibility = gtk_clist_row_is_visible(item_list->clist, row);
if (visibility == GTK_VISIBILITY_NONE)
gtk_clist_moveto(item_list->clist, row, 0, 0.5, 0.0);
gnc_item_list_show_selected(item_list);
return;
}
}
void
gnc_item_list_show_selected(GNCItemList *item_list)
{
GtkVisibility visibility;
gint row;
g_return_if_fail(item_list != NULL);
g_return_if_fail(IS_GNC_ITEM_LIST(item_list));
row = item_list->clist->focus_row;
visibility = gtk_clist_row_is_visible(item_list->clist, row);
if (visibility != GTK_VISIBILITY_FULL)
gtk_clist_moveto(item_list->clist, row, 0, 0.5, 0.0);
}
void
gnc_item_list_sort(GNCItemList *item_list)
{

View File

@ -51,6 +51,8 @@ void gnc_item_list_append(GNCItemList *item_list, char *string);
void gnc_item_list_select(GNCItemList *item_list, const char *string);
void gnc_item_list_show_selected(GNCItemList *item_list);
void gnc_item_list_sort(GNCItemList *item_list);
void gnc_item_list_autosize(GNCItemList *item_list);