Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2005-04-03 00:01:48 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2005-04-03 00:01:48 (GMT)
commitce80b45c492900e204b314c27000d8fd99687130 (patch)
treea5e3ce69ea2956818637040e8aff4635f37a4c32 /shell/ev-window.c
parentc05711d970c3312e5077e384cba77d1a1b14e93f (diff)
Patch from Alberto Mesas <amesas@gmail.com> to make F1 bring up
Sat Apr 2 18:57:00 2005 Jonathan Blandford <jrb@redhat.com> * shell/evwindow.c: Patch from Alberto Mesas <amesas@gmail.com> to make F1 bring up non-existent help. * shell/eggfindbar.c: Patch from Christian Persch to sync to epiphany's find bar, #167477 * shell/ev-view.c (ev_view_jump): Patch from Emil Soleyman-Zomalan <emil@nishra.com> to add space-bar scrolling, * shell/ev-window.c (static GtkActionEntry entries): add default keybinding for Help (F1) Fixes #171068 * shell/ev-view.c (ev_view_show_cursor): Fix from Yuval Tanny changing EV_VIEW_CURSOR_LINK to EV_VIEW_CURSOR_NORMAL resolves bug 170110
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 9990f61..e606aed 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1051,7 +1051,7 @@ ev_window_cmd_edit_find (GtkAction *action, EvWindow *ev_window)
} else {
update_chrome_flag (ev_window, EV_CHROME_FINDBAR, NULL, TRUE);
- egg_find_bar_grab_focus (EGG_FIND_BAR (ev_window->priv->find_bar));
+ gtk_widget_grab_focus (ev_window->priv->find_bar);
}
}
@@ -1874,7 +1874,7 @@ find_bar_search_changed_cb (EggFindBar *find_bar,
if (ev_window->priv->document &&
EV_IS_DOCUMENT_FIND (ev_window->priv->document)) {
- if (visible && search_string) {
+ if (visible && search_string && search_string[0]) {
g_mutex_lock (EV_DOC_MUTEX);
ev_document_find_begin (EV_DOCUMENT_FIND (ev_window->priv->document), search_string, case_sensitive);
g_mutex_unlock (EV_DOC_MUTEX);
@@ -1931,6 +1931,14 @@ ev_window_dispose (GObject *object)
priv->password_uri = NULL;
}
+ if (priv->find_bar) {
+ g_signal_handlers_disconnect_by_func
+ (window->priv->find_bar,
+ G_CALLBACK (find_bar_close_cb),
+ window);
+ priv->find_bar = NULL;
+ }
+
destroy_fullscreen_popup (window);
G_OBJECT_CLASS (ev_window_parent_class)->dispose (object);
@@ -2012,7 +2020,7 @@ static GtkActionEntry entries[] = {
G_CALLBACK (ev_window_cmd_go_last_page) },
/* Help menu */
- { "HelpContents", GTK_STOCK_HELP, N_("_Contents"), NULL,
+ { "HelpContents", GTK_STOCK_HELP, N_("_Contents"), "F1",
N_("Display help for the viewer application"),
G_CALLBACK (ev_window_cmd_help_contents) },