aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--addressbook/demo/addressbook-widget.c9
2 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index af1c0776d8..2ed3b0079a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2000-03-21 Christopher James Lahey <clahey@helixcode.com>
+ * addressbook/demo/addressbook-widget.c: Make background pixmap
+ get properly set to NULL.
+
+2000-03-21 Christopher James Lahey <clahey@helixcode.com>
+
* widgets/shortcut-bar/e-icon-bar.c: Updated to fix a few bugs.
2000-03-20 Christopher James Lahey <clahey@helixcode.com>
diff --git a/addressbook/demo/addressbook-widget.c b/addressbook/demo/addressbook-widget.c
index 1252f9993c..fe2a5afaa2 100644
--- a/addressbook/demo/addressbook-widget.c
+++ b/addressbook/demo/addressbook-widget.c
@@ -222,6 +222,12 @@ static void resize(ECanvas *canvas, gpointer data)
NULL );
}
+static void
+canvas_realized(GtkLayout *layout, View *view)
+{
+ gdk_window_set_back_pixmap( layout->bin_window, NULL, FALSE);
+}
+
static GtkWidget *
create_reflow(View *view)
{
@@ -278,7 +284,8 @@ create_reflow(View *view)
GTK_SIGNAL_FUNC( allocate_callback ),
( gpointer ) view );
- gdk_window_set_back_pixmap( GTK_LAYOUT(reflow->canvas)->bin_window, NULL, FALSE);
+ gtk_signal_connect( GTK_OBJECT(reflow->canvas), "realize",
+ GTK_SIGNAL_FUNC(canvas_realized), view);
reflow->model_changed_id = gtk_signal_connect(GTK_OBJECT( view->model ), "model_changed",
GTK_SIGNAL_FUNC(rebuild_reflow), view);