diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-31 01:28:08 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-31 01:28:08 +0800 |
commit | 7172355841dbd207938ae58879819c6935465803 (patch) | |
tree | 8f2651d4d15a19e60f3bd5bfdca7b8572bc2b84d /addressbook/gui/minicard | |
parent | 475917c60722ce4f95ab45f7b8294e06f51aae20 (diff) | |
download | gsoc2013-evolution-7172355841dbd207938ae58879819c6935465803.tar.gz gsoc2013-evolution-7172355841dbd207938ae58879819c6935465803.tar.zst gsoc2013-evolution-7172355841dbd207938ae58879819c6935465803.zip |
Made the alphabet buttons not focusable.
2000-05-30 Christopher James Lahey <clahey@helixcode.com>
* gui/component/alphabet.glade: Made the alphabet buttons not
focusable.
* gui/minicard/e-minicard-view.c: Made the "123" button work.
* gui/minicard/e-reflow-sorted.c: Made all buttons past the last
letter available work.
svn path=/trunk/; revision=3285
Diffstat (limited to 'addressbook/gui/minicard')
-rw-r--r-- | addressbook/gui/minicard/e-minicard-view.c | 3 | ||||
-rw-r--r-- | addressbook/gui/minicard/e-reflow-sorted.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/addressbook/gui/minicard/e-minicard-view.c b/addressbook/gui/minicard/e-minicard-view.c index bc2e22fa32..73463866f4 100644 --- a/addressbook/gui/minicard/e-minicard-view.c +++ b/addressbook/gui/minicard/e-minicard-view.c @@ -387,6 +387,9 @@ compare_to_letter(EMinicard *card, char *letter) g_return_val_if_fail(card != NULL, 0); g_return_val_if_fail(E_IS_MINICARD(card), 0); + if (*letter == '1') + return 1; + if (card->card) { char *file_as; gtk_object_get(GTK_OBJECT(card->card), diff --git a/addressbook/gui/minicard/e-reflow-sorted.c b/addressbook/gui/minicard/e-reflow-sorted.c index c899ccb9a7..2d2dcee787 100644 --- a/addressbook/gui/minicard/e-reflow-sorted.c +++ b/addressbook/gui/minicard/e-reflow-sorted.c @@ -246,11 +246,11 @@ void e_reflow_sorted_jump (EReflowSorted *sorted, int columns = 0; EReflow *reflow = E_REFLOW(sorted); GList *list; + GtkAdjustment *adjustment; for (list = reflow->columns; list; list = g_list_next(list)) { if (compare_func(((GList *)list->data)->data, value) >= 0) { GList *last = list->prev; - GtkAdjustment *adjustment; if (last) { GList *walk; for (walk = last->data; walk != list->data; walk = g_list_next(walk)) { @@ -266,4 +266,7 @@ void e_reflow_sorted_jump (EReflowSorted *sorted, } columns ++; } + columns --; + adjustment = gtk_layout_get_hadjustment(GTK_LAYOUT(GNOME_CANVAS_ITEM(sorted)->canvas)); + gtk_adjustment_set_value(adjustment, (reflow->column_width + E_REFLOW_FULL_GUTTER) * columns); } |