summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoaquín Cuenca Abela <cuenca@src.gnome.org>2002-04-11 08:58:37 +0000
committerJoaquín Cuenca Abela <cuenca@src.gnome.org>2002-04-11 08:58:37 +0000
commit87252703f95e70409e87f7a147b208e3a6951217 (patch)
tree48e84f7077bd1600d07ff2242aaca7f9768eee21
parent34946d9a7b4df81a72982275a152d4e3618496fc (diff)
downloadglade-87252703f95e70409e87f7a147b208e3a6951217.tar.gz
hack to hide the "nodes not drawing at the right time" problem. The
bug is still visible sometimes, but much less now.
-rw-r--r--ChangeLog6
-rw-r--r--src/glade-widget.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index df9c2a17..0fe57712 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-04-11 Joaquín Cuenca Abela <cuenca@pacaterie.u-psud.fr>
+
+ * src/glade-widget.c: hack to hide the "nodes not drawing at the
+ right time" problem. The bug is still visible sometimes, but much
+ less now.
+
2002-04-01 Joaquín Cuenca Abela <cuenca@pacaterie.u-psud.fr>
* src/glade-editor.c, glade-command.[ch],
diff --git a/src/glade-widget.c b/src/glade-widget.c
index 5d5cabc9..ee3b9c94 100644
--- a/src/glade-widget.c
+++ b/src/glade-widget.c
@@ -439,8 +439,7 @@ glade_widget_draw_selection_nodes (GladeWidget *glade_widget)
window = glade_widget_get_window (glade_widget, &paint_widget);
if (widget->parent) {
- x = widget->allocation.x;
- y = widget->allocation.y;
+ gtk_widget_translate_coordinates (widget, paint_widget, 0, 0, &x, &y);
w = widget->allocation.width;
h = widget->allocation.height;
} else {
@@ -500,6 +499,9 @@ glade_widget_connect_draw_signals (GladeWidget *glade_widget)
gtk_signal_connect_after (GTK_OBJECT (widget), "expose_event",
GTK_SIGNAL_FUNC (glade_widget_expose_event_cb),
glade_widget);
+ gtk_signal_connect_after (GTK_OBJECT (widget), "event_after",
+ GTK_SIGNAL_FUNC (glade_widget_expose_event_cb),
+ glade_widget);
}
static void