Esempio n. 1
0
static void
size_allocate(GtkWidget *widget, GdkRectangle *allocation, gpointer user_data)
{
    GeglGtkView *self = GEGL_GTK_VIEW(widget);
    gint scale_factor;

    scale_factor = gtk_widget_get_scale_factor (widget);
    view_helper_set_allocation(GET_PRIVATE(self), allocation, scale_factor);
}
Esempio n. 2
0
static void
size_allocate(GtkWidget *widget, GdkRectangle *allocation, gpointer user_data)
{
    GeglGtkView *self = GEGL_GTK_VIEW(widget);
    view_helper_set_allocation(GET_PRIVATE(self), allocation);
}