aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@gnu.org>2000-04-16 08:39:00 +0800
committerMiguel de Icaza <miguel@src.gnome.org>2000-04-16 08:39:00 +0800
commit9ee0c77a74e4d19ee914f144e53fcfedae8cdf8b (patch)
treec1aa697d43cc2e91626bec73c484506dd159884a /e-util
parenta0cca95826028dc5d170dc54c71de5966eb9206a (diff)
downloadgsoc2013-evolution-9ee0c77a74e4d19ee914f144e53fcfedae8cdf8b.tar.gz
gsoc2013-evolution-9ee0c77a74e4d19ee914f144e53fcfedae8cdf8b.tar.zst
gsoc2013-evolution-9ee0c77a74e4d19ee914f144e53fcfedae8cdf8b.zip
Add realize. (e_canvas_realize): Set the back pixmap to NULL to reduce
2000-04-16 Anders Carlsson <andersca@gnu.org> * e-canvas.c (e_canvas_class_init): Add realize. (e_canvas_realize): Set the back pixmap to NULL to reduce flicker. svn path=/trunk/; revision=2456
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog5
-rw-r--r--e-util/e-canvas.c18
2 files changed, 19 insertions, 4 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index f181bc8424..4cba63be98 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-16 Anders Carlsson <andersca@gnu.org>
+
+ * e-canvas.c (e_canvas_class_init): Add realize.
+ (e_canvas_realize): Set the back pixmap to NULL to reduce flicker.
+
2000-04-14 Christopher James Lahey <clahey@helixcode.com>
* e-xml-utils.c: Fixing a warning.
diff --git a/e-util/e-canvas.c b/e-util/e-canvas.c
index 704b6ca12b..ad0819e3dd 100644
--- a/e-util/e-canvas.c
+++ b/e-util/e-canvas.c
@@ -23,14 +23,15 @@
#include <gnome.h>
#include "e-canvas.h"
static void e_canvas_init (ECanvas *card);
-static void e_canvas_class_init (ECanvasClass *klass);
+static void e_canvas_class_init (ECanvasClass *klass);
+static void e_canvas_realize (GtkWidget *widget);
static gint e_canvas_key (GtkWidget *widget,
GdkEventKey *event);
static gint e_canvas_focus_in (GtkWidget *widget,
- GdkEventFocus *event);
+ GdkEventFocus *event);
static gint e_canvas_focus_out (GtkWidget *widget,
- GdkEventFocus *event);
+ GdkEventFocus *event);
static int emit_event (GnomeCanvas *canvas, GdkEvent *event);
@@ -85,7 +86,8 @@ e_canvas_class_init (ECanvasClass *klass)
widget_class->key_release_event = e_canvas_key;
widget_class->focus_in_event = e_canvas_focus_in;
widget_class->focus_out_event = e_canvas_focus_out;
-
+ widget_class->realize = e_canvas_realize;
+
klass->reflow = NULL;
e_canvas_signals [REFLOW] =
@@ -331,6 +333,14 @@ e_canvas_focus_out (GtkWidget *widget, GdkEventFocus *event)
return FALSE;
}
+static void
+e_canvas_realize (GtkWidget *widget)
+{
+ if (GTK_WIDGET_CLASS (parent_class)->realize)
+ (* GTK_WIDGET_CLASS (parent_class)->realize) (widget);
+
+ gdk_window_set_back_pixmap (GTK_LAYOUT (widget)->bin_window, NULL, FALSE);
+}
static void
e_canvas_item_invoke_reflow (GnomeCanvasItem *item, int flags)