eog r4723 - in trunk: . src
- From: csaavedra svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4723 - in trunk: . src
- Date: Thu, 4 Sep 2008 21:28:48 +0000 (UTC)
Author: csaavedra
Date: Thu Sep 4 21:28:48 2008
New Revision: 4723
URL: http://svn.gnome.org/viewvc/eog?rev=4723&view=rev
Log:
2008-09-05 Claudio Saavedra <csaavedra igalia com>
* src/eog-message-area.c: (size_allocate), (eog_message_area_init):
Enqueue a redraw of the widget upon allocation. Fixes bug #504538.
Modified:
trunk/ChangeLog
trunk/src/eog-message-area.c
Modified: trunk/src/eog-message-area.c
==============================================================================
--- trunk/src/eog-message-area.c (original)
+++ trunk/src/eog-message-area.c Thu Sep 4 21:28:48 2008
@@ -123,6 +123,14 @@
GTK_RESPONSE_CANCEL);
}
+static void
+size_allocate (GtkWidget *widget,
+ GtkAllocation *allocation,
+ gpointer user_data)
+{
+ gtk_widget_queue_draw (widget);
+}
+
static gboolean
paint_message_area (GtkWidget *widget,
GdkEventExpose *event,
@@ -251,6 +259,10 @@
"expose_event",
G_CALLBACK (paint_message_area),
NULL);
+ g_signal_connect (message_area,
+ "size-allocate",
+ G_CALLBACK (size_allocate),
+ NULL);
/* Note that we connect to style-set on one of the internal
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]