diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-03-22 07:34:01 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-03-22 07:34:01 +0800 |
commit | b6e8aede861a7a3b805bd410d81feb036823230d (patch) | |
tree | c612f25b0043694df0c2272fbd489dec75146be6 /addressbook | |
parent | df898c5de4f91c1b83227edcf8b54ed88c865338 (diff) | |
download | gsoc2013-evolution-b6e8aede861a7a3b805bd410d81feb036823230d.tar.gz gsoc2013-evolution-b6e8aede861a7a3b805bd410d81feb036823230d.tar.zst gsoc2013-evolution-b6e8aede861a7a3b805bd410d81feb036823230d.zip |
Make background pixmap get properly set to NULL.
2000-03-21 Christopher James Lahey <clahey@helixcode.com>
* addressbook/demo/addressbook-widget.c: Make background pixmap
get properly set to NULL.
svn path=/trunk/; revision=2136
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/demo/addressbook-widget.c | 9 |
1 files changed, 8 insertions, 1 deletions
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); |