aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@svn.gnome.org>2007-01-29 04:34:05 +0800
committerChristian Persch <chpe@src.gnome.org>2007-01-29 04:34:05 +0800
commit85151b3f7a707ce606659750f66c1dcc73689fc9 (patch)
treedd8027c3b21319b650c0331c808e51e650479d39
parentb78dc365fa09e15f41357d177b02ae903ebabaa8 (diff)
downloadgsoc2013-epiphany-85151b3f7a707ce606659750f66c1dcc73689fc9.tar
gsoc2013-epiphany-85151b3f7a707ce606659750f66c1dcc73689fc9.tar.gz
gsoc2013-epiphany-85151b3f7a707ce606659750f66c1dcc73689fc9.tar.bz2
gsoc2013-epiphany-85151b3f7a707ce606659750f66c1dcc73689fc9.tar.lz
gsoc2013-epiphany-85151b3f7a707ce606659750f66c1dcc73689fc9.tar.xz
gsoc2013-epiphany-85151b3f7a707ce606659750f66c1dcc73689fc9.tar.zst
gsoc2013-epiphany-85151b3f7a707ce606659750f66c1dcc73689fc9.zip
Make this a regular check, not g_return_if_fail.
2007-01-28 Christian Persch <chpe@svn.gnome.org> * src/ephy-tabs-menu.c: (sync_active_tab): Make this a regular check, not g_return_if_fail. svn path=/trunk/; revision=6866
-rw-r--r--ChangeLog6
-rw-r--r--src/ephy-tabs-menu.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c53ee858..aa5586b41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2007-01-28 Christian Persch <chpe@svn.gnome.org>
+ * src/ephy-tabs-menu.c: (sync_active_tab):
+
+ Make this a regular check, not g_return_if_fail.
+
+2007-01-28 Christian Persch <chpe@svn.gnome.org>
+
* data/default-prefs-common.js:
Set bidi caret movement pref to mimick gtk widgets.
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c
index 804235cc7..0ae78b49e 100644
--- a/src/ephy-tabs-menu.c
+++ b/src/ephy-tabs-menu.c
@@ -240,11 +240,9 @@ sync_active_tab (EphyWindow *window,
GtkAction *action;
tab = ephy_window_get_active_tab (window);
+ if (tab == NULL) return;
LOG ("active tab is tab %p", tab);
-
- g_return_if_fail (tab != NULL);
- if (tab == NULL) return;
action = g_object_get_data (G_OBJECT (tab), DATA_KEY);
/* happens initially, since the ::active-tab comes before