From 7172355841dbd207938ae58879819c6935465803 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 30 May 2000 17:28:08 +0000 Subject: Made the alphabet buttons not focusable. 2000-05-30 Christopher James Lahey * 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 --- addressbook/gui/component/alphabet.glade | 28 +--------------------------- addressbook/gui/minicard/e-minicard-view.c | 3 +++ addressbook/gui/minicard/e-reflow-sorted.c | 5 ++++- addressbook/gui/widgets/alphabet.glade | 28 +--------------------------- addressbook/gui/widgets/e-minicard-view.c | 3 +++ 5 files changed, 12 insertions(+), 55 deletions(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/alphabet.glade b/addressbook/gui/component/alphabet.glade index 2da4de8ad3..bc6e5f3798 100644 --- a/addressbook/gui/component/alphabet.glade +++ b/addressbook/gui/component/alphabet.glade @@ -54,8 +54,7 @@ GtkButton - button-123 - True + button-1 0 @@ -67,7 +66,6 @@ GtkButton button-a - True 0 @@ -79,7 +77,6 @@ GtkButton button-b - True 0 @@ -91,7 +88,6 @@ GtkButton button-c - True 0 @@ -103,7 +99,6 @@ GtkButton button-d - True 0 @@ -115,7 +110,6 @@ GtkButton button-e - True 0 @@ -127,7 +121,6 @@ GtkButton button-f - True 0 @@ -139,7 +132,6 @@ GtkButton button-g - True 0 @@ -151,7 +143,6 @@ GtkButton button-h - True 0 @@ -163,7 +154,6 @@ GtkButton button-i - True 0 @@ -175,7 +165,6 @@ GtkButton button-j - True 0 @@ -187,7 +176,6 @@ GtkButton button-k - True 0 @@ -199,7 +187,6 @@ GtkButton button-l - True 0 @@ -211,7 +198,6 @@ GtkButton button-m - True 0 @@ -223,7 +209,6 @@ GtkButton button-n - True 0 @@ -235,7 +220,6 @@ GtkButton button-o - True 0 @@ -247,7 +231,6 @@ GtkButton button-p - True 0 @@ -259,7 +242,6 @@ GtkButton button-q - True 0 @@ -271,7 +253,6 @@ GtkButton button-r - True 0 @@ -283,7 +264,6 @@ GtkButton button-s - True 0 @@ -295,7 +275,6 @@ GtkButton button-t - True 0 @@ -307,7 +286,6 @@ GtkButton button-u - True 0 @@ -319,7 +297,6 @@ GtkButton button-v - True 0 @@ -343,7 +320,6 @@ GtkButton button-x - True 0 @@ -355,7 +331,6 @@ GtkButton button-y - True 0 @@ -367,7 +342,6 @@ GtkButton button-z - True 0 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); } diff --git a/addressbook/gui/widgets/alphabet.glade b/addressbook/gui/widgets/alphabet.glade index 2da4de8ad3..bc6e5f3798 100644 --- a/addressbook/gui/widgets/alphabet.glade +++ b/addressbook/gui/widgets/alphabet.glade @@ -54,8 +54,7 @@ GtkButton - button-123 - True + button-1 0 @@ -67,7 +66,6 @@ GtkButton button-a - True 0 @@ -79,7 +77,6 @@ GtkButton button-b - True 0 @@ -91,7 +88,6 @@ GtkButton button-c - True 0 @@ -103,7 +99,6 @@ GtkButton button-d - True 0 @@ -115,7 +110,6 @@ GtkButton button-e - True 0 @@ -127,7 +121,6 @@ GtkButton button-f - True 0 @@ -139,7 +132,6 @@ GtkButton button-g - True 0 @@ -151,7 +143,6 @@ GtkButton button-h - True 0 @@ -163,7 +154,6 @@ GtkButton button-i - True 0 @@ -175,7 +165,6 @@ GtkButton button-j - True 0 @@ -187,7 +176,6 @@ GtkButton button-k - True 0 @@ -199,7 +187,6 @@ GtkButton button-l - True 0 @@ -211,7 +198,6 @@ GtkButton button-m - True 0 @@ -223,7 +209,6 @@ GtkButton button-n - True 0 @@ -235,7 +220,6 @@ GtkButton button-o - True 0 @@ -247,7 +231,6 @@ GtkButton button-p - True 0 @@ -259,7 +242,6 @@ GtkButton button-q - True 0 @@ -271,7 +253,6 @@ GtkButton button-r - True 0 @@ -283,7 +264,6 @@ GtkButton button-s - True 0 @@ -295,7 +275,6 @@ GtkButton button-t - True 0 @@ -307,7 +286,6 @@ GtkButton button-u - True 0 @@ -319,7 +297,6 @@ GtkButton button-v - True 0 @@ -343,7 +320,6 @@ GtkButton button-x - True 0 @@ -355,7 +331,6 @@ GtkButton button-y - True 0 @@ -367,7 +342,6 @@ GtkButton button-z - True 0 diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c index bc2e22fa32..73463866f4 100644 --- a/addressbook/gui/widgets/e-minicard-view.c +++ b/addressbook/gui/widgets/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), -- cgit