Revert "colorplane: Don't connect to the configure-event signal"
This reverts commit 886f58e1cf
.
This made the color plane go missing.
This commit is contained in:
parent
96b6b44e4e
commit
38e4fbc90c
@ -172,11 +172,12 @@ create_surface (GtkColorPlane *plane)
|
|||||||
g_free (data);
|
g_free (data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static gboolean
|
||||||
plane_size_allocate (GtkWidget *widget,
|
plane_configure (GtkWidget *widget,
|
||||||
GtkAllocation *allocation)
|
GdkEventConfigure *event)
|
||||||
{
|
{
|
||||||
create_surface (GTK_COLOR_PLANE (widget));
|
create_surface (GTK_COLOR_PLANE (widget));
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -492,7 +493,7 @@ gtk_color_plane_class_init (GtkColorPlaneClass *class)
|
|||||||
object_class->set_property = plane_set_property;
|
object_class->set_property = plane_set_property;
|
||||||
|
|
||||||
widget_class->draw = plane_draw;
|
widget_class->draw = plane_draw;
|
||||||
widget_class->size_allocate = plane_size_allocate;
|
widget_class->configure_event = plane_configure;
|
||||||
widget_class->key_press_event = plane_key_press;
|
widget_class->key_press_event = plane_key_press;
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
* when the widget is instantiated on a particular display.
|
* when the widget is instantiated on a particular display.
|
||||||
* (Create GDK resources in response to this signal.)
|
* (Create GDK resources in response to this signal.)
|
||||||
*
|
*
|
||||||
* - The #GtkWidget::size-allocate signal to take any necessary
|
* - The #GtkWidget::configure-event signal to take any necessary
|
||||||
* actions when the widget changes size.
|
* actions when the widget changes size.
|
||||||
*
|
*
|
||||||
* - The #GtkWidget::draw signal to handle redrawing the
|
* - The #GtkWidget::draw signal to handle redrawing the
|
||||||
|
Loading…
Reference in New Issue
Block a user