Commit 48d8ec36 authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

set send_event to TRUE. (gtk_drawing_area_size): queue a resize.

Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>

        * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
        send_event to TRUE.
        (gtk_drawing_area_size): queue a resize.
parent 9ce7ba8d
Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
* gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
send_event to TRUE.
(gtk_drawing_area_size): queue a resize.
Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org> Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
......
Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
* gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
send_event to TRUE.
(gtk_drawing_area_size): queue a resize.
Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org> Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
......
Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
* gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
send_event to TRUE.
(gtk_drawing_area_size): queue a resize.
Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org> Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
......
Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
* gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
send_event to TRUE.
(gtk_drawing_area_size): queue a resize.
Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org> Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
......
Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
* gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
send_event to TRUE.
(gtk_drawing_area_size): queue a resize.
Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org> Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
......
Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
* gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
send_event to TRUE.
(gtk_drawing_area_size): queue a resize.
Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org> Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
......
Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
* gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
send_event to TRUE.
(gtk_drawing_area_size): queue a resize.
Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org> Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
......
...@@ -54,7 +54,7 @@ gtk_drawing_area_get_type (void) ...@@ -54,7 +54,7 @@ gtk_drawing_area_get_type (void)
(GtkClassInitFunc) NULL, (GtkClassInitFunc) NULL,
}; };
drawing_area_type = gtk_type_unique (gtk_widget_get_type (), &drawing_area_info); drawing_area_type = gtk_type_unique (GTK_TYPE_WIDGET, &drawing_area_info);
} }
return drawing_area_type; return drawing_area_type;
...@@ -63,9 +63,7 @@ gtk_drawing_area_get_type (void) ...@@ -63,9 +63,7 @@ gtk_drawing_area_get_type (void)
static void static void
gtk_drawing_area_class_init (GtkDrawingAreaClass *class) gtk_drawing_area_class_init (GtkDrawingAreaClass *class)
{ {
GtkWidgetClass *widget_class; GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
widget_class = (GtkWidgetClass*) class;
widget_class->realize = gtk_drawing_area_realize; widget_class->realize = gtk_drawing_area_realize;
widget_class->size_allocate = gtk_drawing_area_size_allocate; widget_class->size_allocate = gtk_drawing_area_size_allocate;
...@@ -81,7 +79,7 @@ gtk_drawing_area_init (GtkDrawingArea *darea) ...@@ -81,7 +79,7 @@ gtk_drawing_area_init (GtkDrawingArea *darea)
GtkWidget* GtkWidget*
gtk_drawing_area_new (void) gtk_drawing_area_new (void)
{ {
return GTK_WIDGET (gtk_type_new (gtk_drawing_area_get_type ())); return GTK_WIDGET (gtk_type_new (GTK_TYPE_DRAWING_AREA));
} }
void void
...@@ -89,11 +87,12 @@ gtk_drawing_area_size (GtkDrawingArea *darea, ...@@ -89,11 +87,12 @@ gtk_drawing_area_size (GtkDrawingArea *darea,
gint width, gint width,
gint height) gint height)
{ {
g_return_if_fail (darea != NULL);
g_return_if_fail (GTK_IS_DRAWING_AREA (darea)); g_return_if_fail (GTK_IS_DRAWING_AREA (darea));
GTK_WIDGET (darea)->requisition.width = width; GTK_WIDGET (darea)->requisition.width = width;
GTK_WIDGET (darea)->requisition.height = height; GTK_WIDGET (darea)->requisition.height = height;
gtk_widget_queue_resize (GTK_WIDGET (darea));
} }
static void static void
...@@ -160,6 +159,7 @@ gtk_drawing_area_send_configure (GtkDrawingArea *darea) ...@@ -160,6 +159,7 @@ gtk_drawing_area_send_configure (GtkDrawingArea *darea)
event.type = GDK_CONFIGURE; event.type = GDK_CONFIGURE;
event.window = widget->window; event.window = widget->window;
event.send_event = TRUE;
event.x = widget->allocation.x; event.x = widget->allocation.x;
event.y = widget->allocation.y; event.y = widget->allocation.y;
event.width = widget->allocation.width; event.width = widget->allocation.width;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment