mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-22 17:06:36 -06:00
bug fixes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2470 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
0df20221c8
commit
accb6afc65
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user