diff options
author | Diego Escalante Urrelo <diegoe@gnome.org> | 2010-01-12 02:59:45 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@gnome.org> | 2010-01-12 04:03:46 +0800 |
commit | 9e563f02b627ff8a0b8732666fe74ee02c6b4671 (patch) | |
tree | 554625d57cb763edf4954ab2ef41bbfba76278f3 | |
parent | 9ea9e684b4cb5563d5b395a93b923771b0f6bffc (diff) | |
download | gsoc2013-epiphany-9e563f02b627ff8a0b8732666fe74ee02c6b4671.tar.gz gsoc2013-epiphany-9e563f02b627ff8a0b8732666fe74ee02c6b4671.tar.zst gsoc2013-epiphany-9e563f02b627ff8a0b8732666fe74ee02c6b4671.zip |
Miscellaneous nitpick fixes
-rw-r--r-- | src/ephy-notebook.c | 1 | ||||
-rw-r--r-- | src/ephy-shell.c | 40 | ||||
-rw-r--r-- | src/ephy-window.c | 2 |
3 files changed, 21 insertions, 22 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index 8dbb10e0e..d56710d94 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -746,7 +746,6 @@ ephy_notebook_add_tab (EphyNotebook *notebook, gtk_notebook_set_current_page (gnotebook, position); g_object_set_data (G_OBJECT (embed), "jump_to", GINT_TO_POINTER (jump_to)); - } return position; diff --git a/src/ephy-shell.c b/src/ephy-shell.c index e75030e9a..3ae1a0b7a 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -466,7 +466,7 @@ ephy_shell_new_tab_full (EphyShell *shell, if ((flags & EPHY_NEW_TAB_APPEND_AFTER) && previous_embed != NULL) { nb = ephy_window_get_notebook (window); - /* FIXME this assumes the tab is the direct notebook child */ + /* FIXME this assumes the tab is the direct notebook child */ position = gtk_notebook_page_num (GTK_NOTEBOOK (nb), GTK_WIDGET (previous_embed)) + 1; } @@ -495,8 +495,8 @@ ephy_shell_new_tab_full (EphyShell *shell, if (previous_embed != NULL) { - ephy_web_view_copy_back_history (ephy_embed_get_web_view (previous_embed), - ephy_embed_get_web_view (embed)); + ephy_web_view_copy_back_history (ephy_embed_get_web_view (previous_embed), + ephy_embed_get_web_view (embed)); } ephy_gui_window_update_user_time (GTK_WIDGET (window), user_time); @@ -520,32 +520,32 @@ ephy_shell_new_tab_full (EphyShell *shell, } else if (flags & EPHY_NEW_TAB_OPEN_PAGE) { - ephy_web_view_load_request (ephy_embed_get_web_view (embed), - request); + ephy_web_view_load_request (ephy_embed_get_web_view (embed), + request); is_empty = url_is_empty (webkit_network_request_get_uri (request)); } - /* Make sure the initial focus is somewhere sensible and not, for - * example, on the reload button. - */ - if (in_new_window || jump_to) - { - /* If the location entry is blank, focus that, except if the - * page was a copy */ - if (is_empty) - { - /* empty page, focus location entry */ + /* Make sure the initial focus is somewhere sensible and not, for + * example, on the reload button. + */ + if (in_new_window || jump_to) + { + /* If the location entry is blank, focus that, except if the + * page was a copy */ + if (is_empty) + { + /* empty page, focus location entry */ toolbar = EPHY_TOOLBAR (ephy_window_get_toolbar (window)); ephy_toolbar_activate_location (toolbar); - } - else if (embed != NULL) - { + } + else if (embed != NULL) + { /* non-empty page, focus the page. but make sure the widget is realised first! */ gtk_widget_realize (GTK_WIDGET (embed)); gtk_widget_grab_focus (GTK_WIDGET (embed)); - } - } + } + } return embed; } diff --git a/src/ephy-window.c b/src/ephy-window.c index 46a2e018f..5e267160b 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -1884,7 +1884,7 @@ sync_tab_popups_allowed (EphyWebView *view, } static void -sync_tab_load_status (EphyWebView *view, +sync_tab_load_status (EphyWebView *view, GParamSpec *pspec, EphyWindow *window) { |