diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-08-14 10:45:14 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-08-14 10:45:14 +0800 |
commit | 45de21347687a54a52cb2d7b89b512a1ae4e4210 (patch) | |
tree | f44d1c0a5455b96aef3713fd5b0d1e0f7110bdba /mail/mail-search.c | |
parent | 476458f355b639cb725188d9d8e767affa71f4ab (diff) | |
download | gsoc2013-evolution-45de21347687a54a52cb2d7b89b512a1ae4e4210.tar.gz gsoc2013-evolution-45de21347687a54a52cb2d7b89b512a1ae4e4210.tar.zst gsoc2013-evolution-45de21347687a54a52cb2d7b89b512a1ae4e4210.zip |
Disable the "search forward/backward" option in the search dialog. Why?
2001-08-13 Jon Trowbridge <trow@ximian.com>
* mail-search.c (mail_search_construct): Disable the "search
forward/backward" option in the search dialog. Why? Well, it
doesn't work properly (bug #4869), and the reason it doesn't work
is because of some scary stuff deep inside of gtkhtml that I don't
understand at all. So since I'm paranoid, and since the GUI
freeze is tomorrow, and since it isn't really an important feature
at all, I'm #if 0-ing it out. If the gtkhtml stuff gets sorted
out, we can slip it back in for 1.1.
svn path=/trunk/; revision=11985
Diffstat (limited to 'mail/mail-search.c')
-rw-r--r-- | mail/mail-search.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/mail-search.c b/mail/mail-search.c index 7cc7a13e52..2fe682bbce 100644 --- a/mail/mail-search.c +++ b/mail/mail-search.c @@ -160,12 +160,14 @@ toggled_case_cb (GtkToggleButton *b, MailSearch *ms) } +#if 0 static void toggled_fwd_cb (GtkToggleButton *b, MailSearch *ms) { ms->search_forward = gtk_toggle_button_get_active (b); gtk_html_engine_search_set_forward (ms->mail->html, ms->search_forward); } +#endif static void dialog_clicked_cb (GtkWidget *w, gint button_number, MailSearch *ms) @@ -268,7 +270,9 @@ mail_search_construct (MailSearch *ms, MailDisplay *mail) GtkWidget *entry; GtkWidget *count_label; GtkWidget *case_check; +#if 0 GtkWidget *fwd_check; +#endif GtkWidget *msg_hbox; GtkWidget *msg_frame; @@ -312,7 +316,9 @@ mail_search_construct (MailSearch *ms, MailDisplay *mail) msg_frame = gtk_frame_new (NULL); case_check = gtk_check_button_new_with_label (_("Case Sensitive")); +#if 0 fwd_check = gtk_check_button_new_with_label (_("Search Forward")); +#endif ms->entry = entry; ms->count_label = count_label; @@ -324,7 +330,9 @@ mail_search_construct (MailSearch *ms, MailDisplay *mail) else mail_search_set_subject (ms, NULL); +#if 0 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fwd_check), ms->search_forward); +#endif gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (case_check), ms->case_sensitive); gtk_box_pack_start (GTK_BOX (msg_hbox), GTK_WIDGET (msg_frame), FALSE, FALSE, 3); @@ -337,7 +345,17 @@ mail_search_construct (MailSearch *ms, MailDisplay *mail) gtk_box_pack_start (GTK_BOX (matches_hbox), gtk_hbox_new (FALSE, 0), TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (toggles_hbox), case_check, FALSE, FALSE, 4); + + /* + * Disabling the forward/backward search button because there are problems with it + * (related to how gtkhtml handles searches), the GUI freeze is upon us, and I + * don't know if they'll get resolved for 1.0. Hopefully getting this fixed can + * be a 1.1 item. + */ + +#if 0 gtk_box_pack_start (GTK_BOX (toggles_hbox), fwd_check, FALSE, FALSE, 4); +#endif gtk_box_pack_start (GTK_BOX (frame_vbox), find_hbox, TRUE, TRUE, 8); gtk_box_pack_start (GTK_BOX (frame_vbox), matches_hbox, TRUE, TRUE, 0); @@ -364,10 +382,12 @@ mail_search_construct (MailSearch *ms, MailDisplay *mail) "toggled", GTK_SIGNAL_FUNC (toggled_case_cb), ms); +#if 0 gtk_signal_connect (GTK_OBJECT (fwd_check), "toggled", GTK_SIGNAL_FUNC (toggled_fwd_cb), ms); +#endif gtk_signal_connect (GTK_OBJECT (ms), "clicked", GTK_SIGNAL_FUNC (dialog_clicked_cb), |