aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-06-10 01:02:04 +0800
committerXan Lopez <xan@src.gnome.org>2003-06-10 01:02:04 +0800
commitf48bb5d3da72e4e65bd3fae4ecb80f8f90bf0df2 (patch)
tree01522051ff0127270f02c92e74b355084e4e983a /src
parent5109e760b1c90a225baaeb4d3ed2076913c36710 (diff)
downloadgsoc2013-epiphany-f48bb5d3da72e4e65bd3fae4ecb80f8f90bf0df2.tar
gsoc2013-epiphany-f48bb5d3da72e4e65bd3fae4ecb80f8f90bf0df2.tar.gz
gsoc2013-epiphany-f48bb5d3da72e4e65bd3fae4ecb80f8f90bf0df2.tar.bz2
gsoc2013-epiphany-f48bb5d3da72e4e65bd3fae4ecb80f8f90bf0df2.tar.lz
gsoc2013-epiphany-f48bb5d3da72e4e65bd3fae4ecb80f8f90bf0df2.tar.xz
gsoc2013-epiphany-f48bb5d3da72e4e65bd3fae4ecb80f8f90bf0df2.tar.zst
gsoc2013-epiphany-f48bb5d3da72e4e65bd3fae4ecb80f8f90bf0df2.zip
Minor cleanups.
Minor cleanups.
Diffstat (limited to 'src')
-rw-r--r--src/window-commands.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 2c7b77281..5fc3325df 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -14,6 +14,8 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
*/
#include <config.h>
@@ -119,17 +121,17 @@ void
window_cmd_file_send_to (EggAction *action,
EphyWindow *window)
{
- char *url;
EphyTab *tab;
EphyEmbed *embed;
+ char *url;
char *location;
char *title;
tab = ephy_window_get_active_tab (window);
- g_return_if_fail (tab);
+ g_return_if_fail (tab != NULL);
embed = ephy_window_get_active_embed (window);
- g_return_if_fail (tab);
+ g_return_if_fail (embed != NULL);
location = gnome_vfs_escape_string (ephy_tab_get_location (tab));
if (ephy_embed_get_title (embed, &title) == G_OK)
@@ -246,6 +248,7 @@ window_cmd_file_new_window (EggAction *action,
EphyTab *tab;
tab = ephy_window_get_active_tab (window);
+ g_return_if_fail (tab != NULL);
ephy_shell_new_tab (ephy_shell, NULL, tab, NULL,
EPHY_NEW_TAB_NEW_PAGE |
@@ -259,11 +262,12 @@ window_cmd_file_new_tab (EggAction *action,
EphyTab *tab;
tab = ephy_window_get_active_tab (window);
+ g_return_if_fail (tab != NULL);
ephy_shell_new_tab (ephy_shell, window, tab, NULL,
- EPHY_NEW_TAB_NEW_PAGE |
- EPHY_NEW_TAB_IN_EXISTING_WINDOW |
- EPHY_NEW_TAB_JUMP);
+ EPHY_NEW_TAB_NEW_PAGE |
+ EPHY_NEW_TAB_IN_EXISTING_WINDOW |
+ EPHY_NEW_TAB_JUMP);
}
void
@@ -286,10 +290,10 @@ window_cmd_file_bookmark_page (EggAction *action,
char *title = NULL;
tab = ephy_window_get_active_tab (window);
- g_return_if_fail (tab);
+ g_return_if_fail (tab != NULL);
embed = ephy_window_get_active_embed (window);
- g_return_if_fail (tab);
+ g_return_if_fail (embed != NULL);
location = ephy_tab_get_location (tab);
if (ephy_embed_get_title (embed, &title) != G_OK)
@@ -378,7 +382,7 @@ window_cmd_file_save_as (EggAction *action,
persist = ephy_embed_persist_new (embed);
ephy_embed_persist_set_flags (persist,
- EMBED_PERSIST_MAINDOC);
+ EMBED_PERSIST_MAINDOC);
ephy_embed_utils_save (GTK_WIDGET(window),
CONF_STATE_SAVE_DIR,
@@ -391,7 +395,7 @@ window_cmd_file_save_as (EggAction *action,
void
window_cmd_file_close_window (EggAction *action,
- EphyWindow *window)
+ EphyWindow *window)
{
EphyTab *tab;