aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/ephy-tab.c16
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 <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.
+
2004-02-24 Xan Lopez <xan@gnome.org>
* 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);
}
}