aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-03-07 03:02:38 +0800
committerChristian Persch <chpe@src.gnome.org>2004-03-07 03:02:38 +0800
commit84ecea1dfe100ec37b35f15beb3ce1783886967e (patch)
tree7ae5daeda778821d06b025c516007c35c8f85461 /src
parent7c42de499225ffa0e144277c6b20e05fc9a11e6d (diff)
downloadgsoc2013-epiphany-84ecea1dfe100ec37b35f15beb3ce1783886967e.tar
gsoc2013-epiphany-84ecea1dfe100ec37b35f15beb3ce1783886967e.tar.gz
gsoc2013-epiphany-84ecea1dfe100ec37b35f15beb3ce1783886967e.tar.bz2
gsoc2013-epiphany-84ecea1dfe100ec37b35f15beb3ce1783886967e.tar.lz
gsoc2013-epiphany-84ecea1dfe100ec37b35f15beb3ce1783886967e.tar.xz
gsoc2013-epiphany-84ecea1dfe100ec37b35f15beb3ce1783886967e.tar.zst
gsoc2013-epiphany-84ecea1dfe100ec37b35f15beb3ce1783886967e.zip
Fix crash when dragging a link to a tab label; I forgot to change this
2004-03-06 Christian Persch <chpe@cvs.gnome.org> * src/ephy-notebook.c: (notebook_drag_data_received_cb): Fix crash when dragging a link to a tab label; I forgot to change this making the recent EphyTab/EphyEmbed changes.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-notebook.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 1a6d65cc8..277010e07 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -626,11 +626,10 @@ ephy_notebook_switch_page_cb (GtkNotebook *notebook,
static void
notebook_drag_data_received_cb (GtkWidget* widget, GdkDragContext *context,
gint x, gint y, GtkSelectionData *selection_data,
- guint info, guint time, GtkWidget *child)
+ guint info, guint time, EphyTab *tab)
{
EphyEmbed *embed = NULL;
EphyWindow *window = NULL;
- EphyTab *tab = NULL;
GtkWidget *toplevel;
GList *uris = NULL, *l;
GnomeVFSURI *uri;
@@ -670,10 +669,10 @@ notebook_drag_data_received_cb (GtkWidget* widget, GdkDragContext *context,
g_return_if_fail (EPHY_IS_WINDOW (toplevel));
window = EPHY_WINDOW (toplevel);
- if (child)
+ if (tab != NULL);
{
- embed = EPHY_EMBED (child);
- tab = ephy_tab_for_embed (embed);
+ embed = ephy_tab_get_embed (tab);
+ g_return_if_fail (EPHY_IS_EMBED (embed));
}
l = uris;