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 | |
parent | 475917c60722ce4f95ab45f7b8294e06f51aae20 (diff) | |
download | gsoc2013-evolution-7172355841dbd207938ae58879819c6935465803.tar gsoc2013-evolution-7172355841dbd207938ae58879819c6935465803.tar.gz gsoc2013-evolution-7172355841dbd207938ae58879819c6935465803.tar.bz2 gsoc2013-evolution-7172355841dbd207938ae58879819c6935465803.tar.lz gsoc2013-evolution-7172355841dbd207938ae58879819c6935465803.tar.xz 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
-rw-r--r-- | addressbook/ChangeLog | 10 | ||||
-rw-r--r-- | addressbook/gui/component/alphabet.glade | 28 | ||||
-rw-r--r-- | addressbook/gui/minicard/e-minicard-view.c | 3 | ||||
-rw-r--r-- | addressbook/gui/minicard/e-reflow-sorted.c | 5 | ||||
-rw-r--r-- | addressbook/gui/widgets/alphabet.glade | 28 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard-view.c | 3 | ||||
-rw-r--r-- | widgets/e-reflow/e-reflow-sorted.c | 5 |
7 files changed, 26 insertions, 56 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index c6278fefcd..334b510700 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,15 @@ 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. + +2000-05-30 Christopher James Lahey <clahey@helixcode.com> + * gui/component/alphabet.glade: Added a bit of space around the alphabet bar. 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 @@ <widget> <class>GtkButton</class> - <name>button-123</name> - <can_focus>True</can_focus> + <name>button-1</name> <label>123</label> <child> <padding>0</padding> @@ -67,7 +66,6 @@ <widget> <class>GtkButton</class> <name>button-a</name> - <can_focus>True</can_focus> <label>a</label> <child> <padding>0</padding> @@ -79,7 +77,6 @@ <widget> <class>GtkButton</class> <name>button-b</name> - <can_focus>True</can_focus> <label>b</label> <child> <padding>0</padding> @@ -91,7 +88,6 @@ <widget> <class>GtkButton</class> <name>button-c</name> - <can_focus>True</can_focus> <label>c</label> <child> <padding>0</padding> @@ -103,7 +99,6 @@ <widget> <class>GtkButton</class> <name>button-d</name> - <can_focus>True</can_focus> <label>d</label> <child> <padding>0</padding> @@ -115,7 +110,6 @@ <widget> <class>GtkButton</class> <name>button-e</name> - <can_focus>True</can_focus> <label>e</label> <child> <padding>0</padding> @@ -127,7 +121,6 @@ <widget> <class>GtkButton</class> <name>button-f</name> - <can_focus>True</can_focus> <label>f</label> <child> <padding>0</padding> @@ -139,7 +132,6 @@ <widget> <class>GtkButton</class> <name>button-g</name> - <can_focus>True</can_focus> <label>g</label> <child> <padding>0</padding> @@ -151,7 +143,6 @@ <widget> <class>GtkButton</class> <name>button-h</name> - <can_focus>True</can_focus> <label>h</label> <child> <padding>0</padding> @@ -163,7 +154,6 @@ <widget> <class>GtkButton</class> <name>button-i</name> - <can_focus>True</can_focus> <label>i</label> <child> <padding>0</padding> @@ -175,7 +165,6 @@ <widget> <class>GtkButton</class> <name>button-j</name> - <can_focus>True</can_focus> <label>j</label> <child> <padding>0</padding> @@ -187,7 +176,6 @@ <widget> <class>GtkButton</class> <name>button-k</name> - <can_focus>True</can_focus> <label>k</label> <child> <padding>0</padding> @@ -199,7 +187,6 @@ <widget> <class>GtkButton</class> <name>button-l</name> - <can_focus>True</can_focus> <label>l</label> <child> <padding>0</padding> @@ -211,7 +198,6 @@ <widget> <class>GtkButton</class> <name>button-m</name> - <can_focus>True</can_focus> <label>m</label> <child> <padding>0</padding> @@ -223,7 +209,6 @@ <widget> <class>GtkButton</class> <name>button-n</name> - <can_focus>True</can_focus> <label>n</label> <child> <padding>0</padding> @@ -235,7 +220,6 @@ <widget> <class>GtkButton</class> <name>button-o</name> - <can_focus>True</can_focus> <label>o</label> <child> <padding>0</padding> @@ -247,7 +231,6 @@ <widget> <class>GtkButton</class> <name>button-p</name> - <can_focus>True</can_focus> <label>p</label> <child> <padding>0</padding> @@ -259,7 +242,6 @@ <widget> <class>GtkButton</class> <name>button-q</name> - <can_focus>True</can_focus> <label>q</label> <child> <padding>0</padding> @@ -271,7 +253,6 @@ <widget> <class>GtkButton</class> <name>button-r</name> - <can_focus>True</can_focus> <label>r</label> <child> <padding>0</padding> @@ -283,7 +264,6 @@ <widget> <class>GtkButton</class> <name>button-s</name> - <can_focus>True</can_focus> <label>s</label> <child> <padding>0</padding> @@ -295,7 +275,6 @@ <widget> <class>GtkButton</class> <name>button-t</name> - <can_focus>True</can_focus> <label>t</label> <child> <padding>0</padding> @@ -307,7 +286,6 @@ <widget> <class>GtkButton</class> <name>button-u</name> - <can_focus>True</can_focus> <label>u</label> <child> <padding>0</padding> @@ -319,7 +297,6 @@ <widget> <class>GtkButton</class> <name>button-v</name> - <can_focus>True</can_focus> <label>v</label> <child> <padding>0</padding> @@ -343,7 +320,6 @@ <widget> <class>GtkButton</class> <name>button-x</name> - <can_focus>True</can_focus> <label>x</label> <child> <padding>0</padding> @@ -355,7 +331,6 @@ <widget> <class>GtkButton</class> <name>button-y</name> - <can_focus>True</can_focus> <label>y</label> <child> <padding>0</padding> @@ -367,7 +342,6 @@ <widget> <class>GtkButton</class> <name>button-z</name> - <can_focus>True</can_focus> <label>z</label> <child> <padding>0</padding> 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 @@ <widget> <class>GtkButton</class> - <name>button-123</name> - <can_focus>True</can_focus> + <name>button-1</name> <label>123</label> <child> <padding>0</padding> @@ -67,7 +66,6 @@ <widget> <class>GtkButton</class> <name>button-a</name> - <can_focus>True</can_focus> <label>a</label> <child> <padding>0</padding> @@ -79,7 +77,6 @@ <widget> <class>GtkButton</class> <name>button-b</name> - <can_focus>True</can_focus> <label>b</label> <child> <padding>0</padding> @@ -91,7 +88,6 @@ <widget> <class>GtkButton</class> <name>button-c</name> - <can_focus>True</can_focus> <label>c</label> <child> <padding>0</padding> @@ -103,7 +99,6 @@ <widget> <class>GtkButton</class> <name>button-d</name> - <can_focus>True</can_focus> <label>d</label> <child> <padding>0</padding> @@ -115,7 +110,6 @@ <widget> <class>GtkButton</class> <name>button-e</name> - <can_focus>True</can_focus> <label>e</label> <child> <padding>0</padding> @@ -127,7 +121,6 @@ <widget> <class>GtkButton</class> <name>button-f</name> - <can_focus>True</can_focus> <label>f</label> <child> <padding>0</padding> @@ -139,7 +132,6 @@ <widget> <class>GtkButton</class> <name>button-g</name> - <can_focus>True</can_focus> <label>g</label> <child> <padding>0</padding> @@ -151,7 +143,6 @@ <widget> <class>GtkButton</class> <name>button-h</name> - <can_focus>True</can_focus> <label>h</label> <child> <padding>0</padding> @@ -163,7 +154,6 @@ <widget> <class>GtkButton</class> <name>button-i</name> - <can_focus>True</can_focus> <label>i</label> <child> <padding>0</padding> @@ -175,7 +165,6 @@ <widget> <class>GtkButton</class> <name>button-j</name> - <can_focus>True</can_focus> <label>j</label> <child> <padding>0</padding> @@ -187,7 +176,6 @@ <widget> <class>GtkButton</class> <name>button-k</name> - <can_focus>True</can_focus> <label>k</label> <child> <padding>0</padding> @@ -199,7 +187,6 @@ <widget> <class>GtkButton</class> <name>button-l</name> - <can_focus>True</can_focus> <label>l</label> <child> <padding>0</padding> @@ -211,7 +198,6 @@ <widget> <class>GtkButton</class> <name>button-m</name> - <can_focus>True</can_focus> <label>m</label> <child> <padding>0</padding> @@ -223,7 +209,6 @@ <widget> <class>GtkButton</class> <name>button-n</name> - <can_focus>True</can_focus> <label>n</label> <child> <padding>0</padding> @@ -235,7 +220,6 @@ <widget> <class>GtkButton</class> <name>button-o</name> - <can_focus>True</can_focus> <label>o</label> <child> <padding>0</padding> @@ -247,7 +231,6 @@ <widget> <class>GtkButton</class> <name>button-p</name> - <can_focus>True</can_focus> <label>p</label> <child> <padding>0</padding> @@ -259,7 +242,6 @@ <widget> <class>GtkButton</class> <name>button-q</name> - <can_focus>True</can_focus> <label>q</label> <child> <padding>0</padding> @@ -271,7 +253,6 @@ <widget> <class>GtkButton</class> <name>button-r</name> - <can_focus>True</can_focus> <label>r</label> <child> <padding>0</padding> @@ -283,7 +264,6 @@ <widget> <class>GtkButton</class> <name>button-s</name> - <can_focus>True</can_focus> <label>s</label> <child> <padding>0</padding> @@ -295,7 +275,6 @@ <widget> <class>GtkButton</class> <name>button-t</name> - <can_focus>True</can_focus> <label>t</label> <child> <padding>0</padding> @@ -307,7 +286,6 @@ <widget> <class>GtkButton</class> <name>button-u</name> - <can_focus>True</can_focus> <label>u</label> <child> <padding>0</padding> @@ -319,7 +297,6 @@ <widget> <class>GtkButton</class> <name>button-v</name> - <can_focus>True</can_focus> <label>v</label> <child> <padding>0</padding> @@ -343,7 +320,6 @@ <widget> <class>GtkButton</class> <name>button-x</name> - <can_focus>True</can_focus> <label>x</label> <child> <padding>0</padding> @@ -355,7 +331,6 @@ <widget> <class>GtkButton</class> <name>button-y</name> - <can_focus>True</can_focus> <label>y</label> <child> <padding>0</padding> @@ -367,7 +342,6 @@ <widget> <class>GtkButton</class> <name>button-z</name> - <can_focus>True</can_focus> <label>z</label> <child> <padding>0</padding> 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), diff --git a/widgets/e-reflow/e-reflow-sorted.c b/widgets/e-reflow/e-reflow-sorted.c index c899ccb9a7..2d2dcee787 100644 --- a/widgets/e-reflow/e-reflow-sorted.c +++ b/widgets/e-reflow/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); } |