2020-09-16 02:17:34 +00:00
|
|
|
#include <math.h>
|
|
|
|
#include "demo3widget.h"
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2023-02-08 00:40:47 +00:00
|
|
|
PROP_TEXTURE = 1,
|
2023-02-08 00:21:51 +00:00
|
|
|
PROP_FILTER,
|
2023-03-11 17:56:08 +00:00
|
|
|
PROP_SCALE,
|
|
|
|
PROP_ANGLE,
|
2020-09-16 02:17:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _Demo3Widget
|
|
|
|
{
|
|
|
|
GtkWidget parent_instance;
|
|
|
|
|
2023-02-08 00:40:47 +00:00
|
|
|
GdkTexture *texture;
|
2020-09-16 02:17:34 +00:00
|
|
|
float scale;
|
2023-03-11 17:56:08 +00:00
|
|
|
float angle;
|
2023-02-08 00:21:51 +00:00
|
|
|
GskScalingFilter filter;
|
2020-09-16 02:17:34 +00:00
|
|
|
|
|
|
|
GtkWidget *menu;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _Demo3WidgetClass
|
|
|
|
{
|
|
|
|
GtkWidgetClass parent_class;
|
|
|
|
};
|
|
|
|
|
|
|
|
G_DEFINE_TYPE (Demo3Widget, demo3_widget, GTK_TYPE_WIDGET)
|
|
|
|
|
2023-03-13 15:54:22 +00:00
|
|
|
static gboolean
|
|
|
|
query_tooltip (GtkWidget *widget,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
gboolean keyboard_mode,
|
|
|
|
GtkTooltip *tooltip,
|
|
|
|
gpointer data)
|
|
|
|
{
|
|
|
|
Demo3Widget *self = DEMO3_WIDGET (widget);
|
|
|
|
GtkWidget *grid;
|
|
|
|
GtkWidget *label;
|
|
|
|
char *s, *s2;
|
|
|
|
const char *filter[] = { "Linear", "Nearest", "Trilinear" };
|
|
|
|
int precision, l;
|
|
|
|
|
|
|
|
grid = gtk_grid_new ();
|
|
|
|
gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
|
|
|
|
gtk_grid_set_row_spacing (GTK_GRID (grid), 6);
|
|
|
|
label = gtk_label_new ("Texture");
|
|
|
|
gtk_label_set_xalign (GTK_LABEL (label), 0);
|
|
|
|
gtk_grid_attach (GTK_GRID (grid), label, 0, 0, 1, 1);
|
|
|
|
s = g_strdup_printf ("%d\342\200\206\303\227\342\200\206%d",
|
|
|
|
gdk_texture_get_width (self->texture),
|
|
|
|
gdk_texture_get_height (self->texture));
|
|
|
|
label = gtk_label_new (s);
|
|
|
|
g_free (s);
|
|
|
|
gtk_label_set_xalign (GTK_LABEL (label), 1);
|
|
|
|
gtk_grid_attach (GTK_GRID (grid), label, 1, 0, 1, 1);
|
|
|
|
|
|
|
|
label = gtk_label_new ("Rotation");
|
|
|
|
gtk_label_set_xalign (GTK_LABEL (label), 0);
|
|
|
|
gtk_grid_attach (GTK_GRID (grid), label, 0, 1, 1, 1);
|
|
|
|
s = g_strdup_printf ("%.1f", self->angle);
|
|
|
|
if (g_str_has_suffix (s, ".0"))
|
|
|
|
s[strlen (s) - 2] = '\0';
|
|
|
|
s2 = g_strconcat (s, "\302\260", NULL);
|
|
|
|
label = gtk_label_new (s2);
|
|
|
|
g_free (s2);
|
|
|
|
g_free (s);
|
|
|
|
gtk_label_set_xalign (GTK_LABEL (label), 1);
|
|
|
|
gtk_grid_attach (GTK_GRID (grid), label, 1, 1, 1, 1);
|
|
|
|
|
|
|
|
label = gtk_label_new ("Scale");
|
|
|
|
gtk_label_set_xalign (GTK_LABEL (label), 0);
|
|
|
|
gtk_grid_attach (GTK_GRID (grid), label, 0, 2, 1, 1);
|
|
|
|
|
|
|
|
precision = 1;
|
2023-11-13 00:59:11 +00:00
|
|
|
s = NULL;
|
2023-03-13 15:54:22 +00:00
|
|
|
do {
|
2023-11-13 00:59:11 +00:00
|
|
|
g_free (s);
|
2023-03-13 15:54:22 +00:00
|
|
|
s = g_strdup_printf ("%.*f", precision, self->scale);
|
|
|
|
l = strlen (s) - 1;
|
|
|
|
while (s[l] == '0')
|
|
|
|
l--;
|
|
|
|
if (s[l] == '.')
|
|
|
|
s[l] = '\0';
|
|
|
|
precision++;
|
|
|
|
} while (strcmp (s, "0") == 0);
|
|
|
|
|
|
|
|
label = gtk_label_new (s);
|
|
|
|
g_free (s);
|
|
|
|
gtk_label_set_xalign (GTK_LABEL (label), 1);
|
|
|
|
gtk_grid_attach (GTK_GRID (grid), label, 1, 2, 1, 1);
|
|
|
|
|
|
|
|
label = gtk_label_new ("Filter");
|
|
|
|
gtk_label_set_xalign (GTK_LABEL (label), 0);
|
|
|
|
gtk_grid_attach (GTK_GRID (grid), label, 0, 3, 1, 1);
|
|
|
|
label = gtk_label_new (filter[self->filter]);
|
|
|
|
gtk_label_set_xalign (GTK_LABEL (label), 1);
|
|
|
|
gtk_grid_attach (GTK_GRID (grid), label, 1, 3, 1, 1);
|
|
|
|
|
|
|
|
gtk_tooltip_set_custom (tooltip, grid);
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2020-09-16 02:17:34 +00:00
|
|
|
static void
|
|
|
|
demo3_widget_init (Demo3Widget *self)
|
|
|
|
{
|
|
|
|
self->scale = 1.f;
|
2023-03-11 17:56:08 +00:00
|
|
|
self->angle = 0.f;
|
2023-02-08 00:21:51 +00:00
|
|
|
self->filter = GSK_SCALING_FILTER_LINEAR;
|
2020-09-16 02:17:34 +00:00
|
|
|
gtk_widget_init_template (GTK_WIDGET (self));
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
demo3_widget_dispose (GObject *object)
|
|
|
|
{
|
|
|
|
Demo3Widget *self = DEMO3_WIDGET (object);
|
|
|
|
|
2023-02-08 00:40:47 +00:00
|
|
|
g_clear_object (&self->texture);
|
2022-07-06 12:23:54 +00:00
|
|
|
|
2022-07-07 13:09:35 +00:00
|
|
|
gtk_widget_dispose_template (GTK_WIDGET (self), DEMO3_TYPE_WIDGET);
|
2020-09-16 02:17:34 +00:00
|
|
|
|
|
|
|
G_OBJECT_CLASS (demo3_widget_parent_class)->dispose (object);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
demo3_widget_snapshot (GtkWidget *widget,
|
|
|
|
GtkSnapshot *snapshot)
|
|
|
|
{
|
|
|
|
Demo3Widget *self = DEMO3_WIDGET (widget);
|
|
|
|
int x, y, width, height;
|
2023-03-11 17:56:08 +00:00
|
|
|
double w, h, w2, h2;
|
2020-09-16 02:17:34 +00:00
|
|
|
|
|
|
|
width = gtk_widget_get_width (widget);
|
|
|
|
height = gtk_widget_get_height (widget);
|
|
|
|
|
2023-03-11 17:56:08 +00:00
|
|
|
w2 = w = self->scale * gdk_texture_get_width (self->texture);
|
|
|
|
h2 = h = self->scale * gdk_texture_get_height (self->texture);
|
2020-09-16 02:17:34 +00:00
|
|
|
|
2023-03-11 17:56:08 +00:00
|
|
|
if (G_APPROX_VALUE (self->angle, 90.f, FLT_EPSILON) ||
|
|
|
|
G_APPROX_VALUE (self->angle, 270.f, FLT_EPSILON))
|
|
|
|
{
|
2023-03-13 07:11:29 +00:00
|
|
|
double s = w2;
|
2023-03-11 17:56:08 +00:00
|
|
|
w2 = h2;
|
|
|
|
h2 = s;
|
|
|
|
}
|
|
|
|
|
2023-03-13 07:11:29 +00:00
|
|
|
x = (width - ceil (w2)) / 2;
|
|
|
|
y = (height - ceil (h2)) / 2;
|
2020-09-16 02:17:34 +00:00
|
|
|
|
|
|
|
gtk_snapshot_push_clip (snapshot, &GRAPHENE_RECT_INIT (0, 0, width, height));
|
|
|
|
gtk_snapshot_save (snapshot);
|
|
|
|
gtk_snapshot_translate (snapshot, &GRAPHENE_POINT_INIT (x, y));
|
2023-03-11 17:56:08 +00:00
|
|
|
gtk_snapshot_translate (snapshot, &GRAPHENE_POINT_INIT (w2 / 2, h2 / 2));
|
|
|
|
gtk_snapshot_rotate (snapshot, self->angle);
|
|
|
|
gtk_snapshot_translate (snapshot, &GRAPHENE_POINT_INIT (- w / 2, - h / 2));
|
2023-03-13 07:54:13 +00:00
|
|
|
gtk_snapshot_append_scaled_texture (snapshot,
|
|
|
|
self->texture,
|
|
|
|
self->filter,
|
|
|
|
&GRAPHENE_RECT_INIT (0, 0, w, h));
|
2020-09-16 02:17:34 +00:00
|
|
|
gtk_snapshot_restore (snapshot);
|
|
|
|
gtk_snapshot_pop (snapshot);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
demo3_widget_measure (GtkWidget *widget,
|
|
|
|
GtkOrientation orientation,
|
|
|
|
int for_size,
|
|
|
|
int *minimum,
|
|
|
|
int *natural,
|
|
|
|
int *minimum_baseline,
|
|
|
|
int *natural_baseline)
|
|
|
|
{
|
|
|
|
Demo3Widget *self = DEMO3_WIDGET (widget);
|
2023-03-13 07:11:29 +00:00
|
|
|
int width, height;
|
2020-09-16 02:17:34 +00:00
|
|
|
int size;
|
|
|
|
|
2023-03-13 07:11:29 +00:00
|
|
|
width = gdk_texture_get_width (self->texture);
|
|
|
|
height = gdk_texture_get_height (self->texture);
|
|
|
|
|
|
|
|
if (G_APPROX_VALUE (self->angle, 90.f, FLT_EPSILON) ||
|
|
|
|
G_APPROX_VALUE (self->angle, 270.f, FLT_EPSILON))
|
|
|
|
{
|
|
|
|
int s = width;
|
|
|
|
width = height;
|
|
|
|
height = s;
|
|
|
|
}
|
|
|
|
|
2020-09-16 02:17:34 +00:00
|
|
|
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
2023-03-13 07:11:29 +00:00
|
|
|
size = width;
|
2020-09-16 02:17:34 +00:00
|
|
|
else
|
2023-03-13 07:11:29 +00:00
|
|
|
size = height;
|
2020-09-16 02:17:34 +00:00
|
|
|
|
2023-03-13 07:11:29 +00:00
|
|
|
*minimum = *natural = (int) ceil (self->scale * size);
|
2020-09-16 02:17:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
demo3_widget_size_allocate (GtkWidget *widget,
|
|
|
|
int width,
|
|
|
|
int height,
|
|
|
|
int baseline)
|
|
|
|
{
|
|
|
|
Demo3Widget *self = DEMO3_WIDGET (widget);
|
|
|
|
|
|
|
|
/* Since we are not using a layout manager (who would do this
|
|
|
|
* for us), we need to allocate a size for our menu by calling
|
2020-12-04 08:20:50 +00:00
|
|
|
* gtk_popover_present().
|
2020-09-16 02:17:34 +00:00
|
|
|
*/
|
2020-12-04 08:20:50 +00:00
|
|
|
gtk_popover_present (GTK_POPOVER (self->menu));
|
2020-09-16 02:17:34 +00:00
|
|
|
}
|
|
|
|
|
2023-03-13 12:10:52 +00:00
|
|
|
static void update_actions (Demo3Widget *self);
|
|
|
|
|
2020-09-16 02:17:34 +00:00
|
|
|
static void
|
|
|
|
demo3_widget_set_property (GObject *object,
|
|
|
|
guint prop_id,
|
|
|
|
const GValue *value,
|
|
|
|
GParamSpec *pspec)
|
|
|
|
{
|
|
|
|
Demo3Widget *self = DEMO3_WIDGET (object);
|
|
|
|
|
|
|
|
switch (prop_id)
|
|
|
|
{
|
2023-02-08 00:40:47 +00:00
|
|
|
case PROP_TEXTURE:
|
|
|
|
g_clear_object (&self->texture);
|
|
|
|
self->texture = g_value_dup_object (value);
|
2023-03-17 15:48:44 +00:00
|
|
|
self->scale = 1.f;
|
|
|
|
self->angle = 0.f;
|
|
|
|
self->filter = GSK_SCALING_FILTER_LINEAR;
|
|
|
|
update_actions (self);
|
2020-09-16 02:17:34 +00:00
|
|
|
gtk_widget_queue_resize (GTK_WIDGET (object));
|
2023-03-17 15:48:44 +00:00
|
|
|
g_object_notify (object, "scale");
|
|
|
|
g_object_notify (object, "angle");
|
|
|
|
g_object_notify (object, "filter");
|
2020-09-16 02:17:34 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case PROP_SCALE:
|
|
|
|
self->scale = g_value_get_float (value);
|
2023-03-13 12:10:52 +00:00
|
|
|
update_actions (self);
|
2020-09-16 02:17:34 +00:00
|
|
|
gtk_widget_queue_resize (GTK_WIDGET (object));
|
|
|
|
break;
|
|
|
|
|
2023-03-11 17:56:08 +00:00
|
|
|
case PROP_ANGLE:
|
|
|
|
self->angle = fmodf (g_value_get_float (value), 360.f);
|
|
|
|
gtk_widget_queue_resize (GTK_WIDGET (object));
|
|
|
|
break;
|
|
|
|
|
2023-02-08 00:21:51 +00:00
|
|
|
case PROP_FILTER:
|
|
|
|
self->filter = g_value_get_enum (value);
|
|
|
|
gtk_widget_queue_resize (GTK_WIDGET (object));
|
|
|
|
break;
|
|
|
|
|
2020-09-16 02:17:34 +00:00
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
demo3_widget_get_property (GObject *object,
|
|
|
|
guint prop_id,
|
|
|
|
GValue *value,
|
|
|
|
GParamSpec *pspec)
|
|
|
|
{
|
|
|
|
Demo3Widget *self = DEMO3_WIDGET (object);
|
|
|
|
|
|
|
|
switch (prop_id)
|
|
|
|
{
|
2023-02-08 00:40:47 +00:00
|
|
|
case PROP_TEXTURE:
|
|
|
|
g_value_set_object (value, self->texture);
|
2020-09-16 02:17:34 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case PROP_SCALE:
|
|
|
|
g_value_set_float (value, self->scale);
|
|
|
|
break;
|
|
|
|
|
2023-03-11 17:56:08 +00:00
|
|
|
case PROP_ANGLE:
|
|
|
|
g_value_set_float (value, self->angle);
|
|
|
|
break;
|
|
|
|
|
2023-02-08 00:21:51 +00:00
|
|
|
case PROP_FILTER:
|
|
|
|
g_value_set_enum (value, self->filter);
|
|
|
|
break;
|
|
|
|
|
2020-09-16 02:17:34 +00:00
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
pressed_cb (GtkGestureClick *gesture,
|
|
|
|
guint n_press,
|
|
|
|
double x,
|
|
|
|
double y,
|
|
|
|
Demo3Widget *self)
|
|
|
|
{
|
|
|
|
/* We are placing our menu at the point where
|
|
|
|
* the click happened, before popping it up.
|
|
|
|
*/
|
|
|
|
gtk_popover_set_pointing_to (GTK_POPOVER (self->menu),
|
|
|
|
&(const GdkRectangle){ x, y, 1, 1 });
|
|
|
|
gtk_popover_popup (GTK_POPOVER (self->menu));
|
|
|
|
}
|
|
|
|
|
2023-03-13 12:10:52 +00:00
|
|
|
static void
|
|
|
|
update_actions (Demo3Widget *self)
|
|
|
|
{
|
|
|
|
gtk_widget_action_set_enabled (GTK_WIDGET (self), "zoom.in", self->scale < 1024.);
|
|
|
|
gtk_widget_action_set_enabled (GTK_WIDGET (self), "zoom.out", self->scale > 1./1024.);
|
|
|
|
gtk_widget_action_set_enabled (GTK_WIDGET (self), "zoom.reset", self->scale != 1.);
|
|
|
|
}
|
|
|
|
|
2020-09-16 02:17:34 +00:00
|
|
|
static void
|
|
|
|
zoom_cb (GtkWidget *widget,
|
|
|
|
const char *action_name,
|
|
|
|
GVariant *parameter)
|
|
|
|
{
|
|
|
|
Demo3Widget *self = DEMO3_WIDGET (widget);
|
|
|
|
float scale;
|
|
|
|
|
|
|
|
if (g_str_equal (action_name, "zoom.in"))
|
2023-03-13 12:10:52 +00:00
|
|
|
scale = MIN (1024., self->scale * M_SQRT2);
|
2020-09-16 02:17:34 +00:00
|
|
|
else if (g_str_equal (action_name, "zoom.out"))
|
2023-03-13 12:10:52 +00:00
|
|
|
scale = MAX (1./1024., self->scale / M_SQRT2);
|
|
|
|
else if (g_str_equal (action_name, "zoom.reset"))
|
2020-09-16 02:17:34 +00:00
|
|
|
scale = 1.0;
|
2023-03-13 12:10:52 +00:00
|
|
|
else
|
|
|
|
g_assert_not_reached ();
|
2020-09-16 02:17:34 +00:00
|
|
|
|
|
|
|
g_object_set (widget, "scale", scale, NULL);
|
|
|
|
}
|
|
|
|
|
2023-03-11 17:56:08 +00:00
|
|
|
static void
|
|
|
|
rotate_cb (GtkWidget *widget,
|
|
|
|
const char *action_name,
|
|
|
|
GVariant *parameter)
|
|
|
|
{
|
|
|
|
Demo3Widget *self = DEMO3_WIDGET (widget);
|
|
|
|
int angle;
|
|
|
|
|
|
|
|
g_variant_get (parameter, "i", &angle);
|
|
|
|
|
|
|
|
g_object_set (widget, "angle", fmodf (self->angle + angle, 360.f), NULL);
|
|
|
|
}
|
|
|
|
|
2020-09-16 02:17:34 +00:00
|
|
|
static void
|
|
|
|
demo3_widget_class_init (Demo3WidgetClass *class)
|
|
|
|
{
|
|
|
|
GObjectClass *object_class = G_OBJECT_CLASS (class);
|
|
|
|
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
|
|
|
|
|
|
|
|
object_class->dispose = demo3_widget_dispose;
|
|
|
|
object_class->set_property = demo3_widget_set_property;
|
|
|
|
object_class->get_property = demo3_widget_get_property;
|
|
|
|
|
|
|
|
widget_class->snapshot = demo3_widget_snapshot;
|
|
|
|
widget_class->measure = demo3_widget_measure;
|
|
|
|
widget_class->size_allocate = demo3_widget_size_allocate;
|
|
|
|
|
2023-02-08 00:40:47 +00:00
|
|
|
g_object_class_install_property (object_class, PROP_TEXTURE,
|
|
|
|
g_param_spec_object ("texture", NULL, NULL,
|
|
|
|
GDK_TYPE_TEXTURE,
|
2020-09-16 02:17:34 +00:00
|
|
|
G_PARAM_READWRITE));
|
|
|
|
|
|
|
|
g_object_class_install_property (object_class, PROP_SCALE,
|
2023-02-08 00:40:47 +00:00
|
|
|
g_param_spec_float ("scale", NULL, NULL,
|
2023-03-13 12:10:52 +00:00
|
|
|
1./1024., 1024., 1.0,
|
2020-09-16 02:17:34 +00:00
|
|
|
G_PARAM_READWRITE));
|
|
|
|
|
2023-03-11 17:56:08 +00:00
|
|
|
g_object_class_install_property (object_class, PROP_ANGLE,
|
|
|
|
g_param_spec_float ("angle", NULL, NULL,
|
|
|
|
0.0, 360.0, 0.0,
|
|
|
|
G_PARAM_READWRITE));
|
|
|
|
|
2023-02-08 00:21:51 +00:00
|
|
|
g_object_class_install_property (object_class, PROP_FILTER,
|
|
|
|
g_param_spec_enum ("filter", NULL, NULL,
|
|
|
|
GSK_TYPE_SCALING_FILTER, GSK_SCALING_FILTER_LINEAR,
|
|
|
|
G_PARAM_READWRITE));
|
|
|
|
|
2020-09-16 02:17:34 +00:00
|
|
|
/* These are the actions that we are using in the menu */
|
|
|
|
gtk_widget_class_install_action (widget_class, "zoom.in", NULL, zoom_cb);
|
|
|
|
gtk_widget_class_install_action (widget_class, "zoom.out", NULL, zoom_cb);
|
|
|
|
gtk_widget_class_install_action (widget_class, "zoom.reset", NULL, zoom_cb);
|
2023-03-11 17:56:08 +00:00
|
|
|
gtk_widget_class_install_action (widget_class, "rotate", "i", rotate_cb);
|
2020-09-16 02:17:34 +00:00
|
|
|
|
|
|
|
gtk_widget_class_set_template_from_resource (widget_class, "/menu/demo3widget.ui");
|
|
|
|
gtk_widget_class_bind_template_child (widget_class, Demo3Widget, menu);
|
|
|
|
gtk_widget_class_bind_template_callback (widget_class, pressed_cb);
|
2023-06-18 16:59:51 +00:00
|
|
|
|
|
|
|
gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_IMG);
|
2020-09-16 02:17:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GtkWidget *
|
|
|
|
demo3_widget_new (const char *resource)
|
|
|
|
{
|
|
|
|
Demo3Widget *self;
|
2023-02-08 00:40:47 +00:00
|
|
|
GdkTexture *texture;
|
2020-09-16 02:17:34 +00:00
|
|
|
|
2023-02-08 00:40:47 +00:00
|
|
|
texture = gdk_texture_new_from_resource (resource);
|
2020-09-16 02:17:34 +00:00
|
|
|
|
2023-03-13 15:54:22 +00:00
|
|
|
self = g_object_new (DEMO3_TYPE_WIDGET,
|
|
|
|
"texture", texture,
|
|
|
|
"has-tooltip", TRUE,
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
g_signal_connect (self, "query-tooltip", G_CALLBACK (query_tooltip), NULL);
|
2020-09-16 02:17:34 +00:00
|
|
|
|
2023-02-08 00:40:47 +00:00
|
|
|
g_object_unref (texture);
|
2020-09-16 02:17:34 +00:00
|
|
|
|
|
|
|
return GTK_WIDGET (self);
|
|
|
|
}
|