From d055989e9fc45f0849de45ec00e02802e6769dc0 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 24 Feb 2004 21:19:48 +0000 Subject: Change this back to simply do g_idle_add(), accidentally forgot to revert 2004-02-24 Christian Persch * 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. --- ChangeLog | 7 +++++++ src/ephy-tab.c | 16 +++------------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8e7bd2543..fb3c873d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-02-24 Christian Persch + + * 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. + 2004-02-24 Xan Lopez * embed/mozilla/EphyHeaderSniffer.cpp: 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); } } -- cgit v1.2.3