aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tab.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-02-25 05:19:48 +0800
committerChristian Persch <chpe@src.gnome.org>2004-02-25 05:19:48 +0800
commitd055989e9fc45f0849de45ec00e02802e6769dc0 (patch)
treecbe5211bd06725260f6290a3a590346096b79dba /src/ephy-tab.c
parentde0c483b6db034cf0ad1590318a537ab5043b490 (diff)
downloadgsoc2013-epiphany-d055989e9fc45f0849de45ec00e02802e6769dc0.tar
gsoc2013-epiphany-d055989e9fc45f0849de45ec00e02802e6769dc0.tar.gz
gsoc2013-epiphany-d055989e9fc45f0849de45ec00e02802e6769dc0.tar.bz2
gsoc2013-epiphany-d055989e9fc45f0849de45ec00e02802e6769dc0.tar.lz
gsoc2013-epiphany-d055989e9fc45f0849de45ec00e02802e6769dc0.tar.xz
gsoc2013-epiphany-d055989e9fc45f0849de45ec00e02802e6769dc0.tar.zst
gsoc2013-epiphany-d055989e9fc45f0849de45ec00e02802e6769dc0.zip
Change this back to simply do g_idle_add(), accidentally forgot to revert
2004-02-24 Christian Persch <chpe@cvs.gnome.org> * src/ephy-tab.c: (let_me_resize_hack), (ephy_tab_size_to_cb): Change this back to simply do g_idle_add(), accidentally forgot to revert my change.
Diffstat (limited to 'src/ephy-tab.c')
-rw-r--r--src/ephy-tab.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index 0f0d84d67..7d79d46af 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -903,15 +903,9 @@ ephy_tab_new_window_cb (EphyEmbed *embed, EphyEmbed **new_embed,
}
static gboolean
-let_me_resize_hack (gpointer *tab_ptr)
+let_me_resize_hack (GtkWidget *tab)
{
- if (*tab_ptr != NULL)
- {
- g_object_remove_weak_pointer (G_OBJECT (*tab_ptr), tab_ptr);
- gtk_widget_set_size_request (GTK_WIDGET (*tab_ptr), -1, -1);
-
- g_free (tab_ptr);
- }
+ gtk_widget_set_size_request (tab, -1, -1);
return FALSE;
}
@@ -947,7 +941,6 @@ ephy_tab_size_to_cb (EphyEmbed *embed, gint width, gint height,
{
GtkWidget *notebook;
EphyWindow *window;
- gpointer *tab_ptr;
tab->priv->width = width;
tab->priv->height = height;
@@ -971,10 +964,7 @@ ephy_tab_size_to_cb (EphyEmbed *embed, gint width, gint height,
* size correctly.
*/
- tab_ptr = g_new (gpointer, 1);
- *tab_ptr = tab;
- g_object_add_weak_pointer (G_OBJECT (tab), tab_ptr);
- g_idle_add ((GSourceFunc) let_me_resize_hack, tab_ptr);
+ g_idle_add ((GSourceFunc) let_me_resize_hack, tab);
}
}