2001-04-18 18:09:18 +00:00
|
|
|
/* Drawing Area
|
2020-09-13 18:59:33 +00:00
|
|
|
* #Keywords: GtkDrawingArea
|
2001-04-18 18:09:18 +00:00
|
|
|
*
|
|
|
|
* GtkDrawingArea is a blank area where you can draw custom displays
|
|
|
|
* of various kinds.
|
|
|
|
*
|
|
|
|
* This demo has two drawing areas. The checkerboard area shows
|
2018-02-05 10:52:32 +00:00
|
|
|
* how you can just draw something; all you have to do is set a function
|
|
|
|
* via gtk_drawing_area_set_draw_func(), as shown here.
|
2001-04-18 18:09:18 +00:00
|
|
|
*
|
|
|
|
* The "scribble" area is a bit more advanced, and shows how to handle
|
|
|
|
* events such as button presses and mouse motion. Click the mouse
|
|
|
|
* and drag in the scribble area to draw squiggles. Resize the window
|
|
|
|
* to clear the area.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
static GtkWidget *window = NULL;
|
|
|
|
/* Pixmap for scribble area, to store current scribbles */
|
2010-08-12 21:38:17 +00:00
|
|
|
static cairo_surface_t *surface = NULL;
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2010-08-12 21:38:17 +00:00
|
|
|
/* Create a new surface of the appropriate size to store our scribbles */
|
2017-10-07 00:41:30 +00:00
|
|
|
static void
|
|
|
|
create_surface (GtkWidget *widget)
|
2001-04-18 18:09:18 +00:00
|
|
|
{
|
2010-07-16 22:18:35 +00:00
|
|
|
cairo_t *cr;
|
|
|
|
|
2010-08-12 21:38:17 +00:00
|
|
|
if (surface)
|
|
|
|
cairo_surface_destroy (surface);
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2017-10-07 00:41:30 +00:00
|
|
|
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
|
2017-11-05 14:01:30 +00:00
|
|
|
gtk_widget_get_width (widget),
|
|
|
|
gtk_widget_get_height (widget));
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2010-08-12 21:38:17 +00:00
|
|
|
/* Initialize the surface to white */
|
|
|
|
cr = cairo_create (surface);
|
2010-07-16 22:18:35 +00:00
|
|
|
|
|
|
|
cairo_set_source_rgb (cr, 1, 1, 1);
|
|
|
|
cairo_paint (cr);
|
|
|
|
|
|
|
|
cairo_destroy (cr);
|
2017-10-07 00:41:30 +00:00
|
|
|
}
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2017-10-07 00:41:30 +00:00
|
|
|
static void
|
2020-05-05 15:53:25 +00:00
|
|
|
scribble_resize (GtkWidget *widget,
|
|
|
|
int width,
|
|
|
|
int height)
|
2017-10-07 00:41:30 +00:00
|
|
|
{
|
|
|
|
create_surface (widget);
|
2001-04-18 18:09:18 +00:00
|
|
|
}
|
|
|
|
|
2010-08-12 21:38:17 +00:00
|
|
|
/* Redraw the screen from the surface */
|
2016-11-18 05:16:38 +00:00
|
|
|
static void
|
|
|
|
scribble_draw (GtkDrawingArea *da,
|
|
|
|
cairo_t *cr,
|
|
|
|
int width,
|
|
|
|
int height,
|
|
|
|
gpointer data)
|
2001-04-18 18:09:18 +00:00
|
|
|
{
|
2010-08-12 21:38:17 +00:00
|
|
|
cairo_set_source_surface (cr, surface, 0, 0);
|
2010-09-08 19:50:16 +00:00
|
|
|
cairo_paint (cr);
|
2001-04-18 18:09:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Draw a rectangle on the screen */
|
|
|
|
static void
|
|
|
|
draw_brush (GtkWidget *widget,
|
2020-07-24 20:32:16 +00:00
|
|
|
double x,
|
|
|
|
double y)
|
2001-04-18 18:09:18 +00:00
|
|
|
{
|
|
|
|
GdkRectangle update_rect;
|
2010-07-16 22:18:35 +00:00
|
|
|
cairo_t *cr;
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2017-10-07 00:41:30 +00:00
|
|
|
if (surface == NULL ||
|
2017-11-05 14:01:30 +00:00
|
|
|
cairo_image_surface_get_width (surface) != gtk_widget_get_width (widget) ||
|
|
|
|
cairo_image_surface_get_height (surface) != gtk_widget_get_height (widget))
|
2017-10-07 00:41:30 +00:00
|
|
|
create_surface (widget);
|
|
|
|
|
2001-04-18 18:09:18 +00:00
|
|
|
update_rect.x = x - 3;
|
|
|
|
update_rect.y = y - 3;
|
|
|
|
update_rect.width = 6;
|
|
|
|
update_rect.height = 6;
|
|
|
|
|
2010-08-12 21:38:17 +00:00
|
|
|
/* Paint to the surface, where we store our state */
|
|
|
|
cr = cairo_create (surface);
|
2010-07-16 22:18:35 +00:00
|
|
|
|
|
|
|
gdk_cairo_rectangle (cr, &update_rect);
|
|
|
|
cairo_fill (cr);
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2010-08-12 21:38:17 +00:00
|
|
|
cairo_destroy (cr);
|
|
|
|
|
2018-03-28 15:09:49 +00:00
|
|
|
gtk_widget_queue_draw (widget);
|
2001-04-18 18:09:18 +00:00
|
|
|
}
|
|
|
|
|
2018-01-01 15:09:31 +00:00
|
|
|
static double start_x;
|
|
|
|
static double start_y;
|
2017-08-28 22:47:03 +00:00
|
|
|
|
2018-01-01 15:09:31 +00:00
|
|
|
static void
|
|
|
|
drag_begin (GtkGestureDrag *gesture,
|
|
|
|
double x,
|
|
|
|
double y,
|
|
|
|
GtkWidget *area)
|
|
|
|
{
|
|
|
|
start_x = x;
|
|
|
|
start_y = y;
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2018-01-01 15:09:31 +00:00
|
|
|
draw_brush (area, x, y);
|
2001-04-18 18:09:18 +00:00
|
|
|
}
|
|
|
|
|
2018-01-01 15:09:31 +00:00
|
|
|
static void
|
|
|
|
drag_update (GtkGestureDrag *gesture,
|
|
|
|
double x,
|
|
|
|
double y,
|
|
|
|
GtkWidget *area)
|
2001-04-18 18:09:18 +00:00
|
|
|
{
|
2018-01-01 15:09:31 +00:00
|
|
|
draw_brush (area, start_x + x, start_y + y);
|
2001-04-18 18:09:18 +00:00
|
|
|
}
|
|
|
|
|
2018-01-01 15:09:31 +00:00
|
|
|
static void
|
|
|
|
drag_end (GtkGestureDrag *gesture,
|
|
|
|
double x,
|
|
|
|
double y,
|
|
|
|
GtkWidget *area)
|
|
|
|
{
|
|
|
|
draw_brush (area, start_x + x, start_y + y);
|
|
|
|
}
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2016-11-18 05:16:38 +00:00
|
|
|
static void
|
2020-05-12 19:42:37 +00:00
|
|
|
oval_path (cairo_t *cr,
|
|
|
|
double xc, double yc,
|
|
|
|
double xr, double yr)
|
2001-04-18 18:09:18 +00:00
|
|
|
{
|
2020-05-12 19:42:37 +00:00
|
|
|
cairo_save (cr);
|
|
|
|
|
|
|
|
cairo_translate (cr, xc, yc);
|
|
|
|
cairo_scale (cr, 1.0, yr / xr);
|
|
|
|
cairo_move_to (cr, xr, 0.0);
|
|
|
|
cairo_arc (cr,
|
|
|
|
0, 0,
|
|
|
|
xr,
|
|
|
|
0, 2 * G_PI);
|
|
|
|
cairo_close_path (cr);
|
|
|
|
|
|
|
|
cairo_restore (cr);
|
|
|
|
}
|
2008-08-11 19:12:58 +00:00
|
|
|
|
2020-05-12 19:42:37 +00:00
|
|
|
/* Fill the given area with checks in the standard style
|
|
|
|
* for showing compositing effects.
|
|
|
|
*
|
|
|
|
* It would make sense to do this as a repeating surface,
|
|
|
|
* but most implementations of RENDER currently have broken
|
|
|
|
* implementations of repeat + transform, even when the
|
|
|
|
* transform is a translation.
|
|
|
|
*/
|
|
|
|
static void
|
|
|
|
fill_checks (cairo_t *cr,
|
|
|
|
int x, int y,
|
|
|
|
int width, int height)
|
|
|
|
{
|
|
|
|
int i, j;
|
2008-08-11 19:12:58 +00:00
|
|
|
|
2020-05-12 19:42:37 +00:00
|
|
|
#define CHECK_SIZE 16
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2020-05-12 19:42:37 +00:00
|
|
|
cairo_rectangle (cr, x, y, width, height);
|
|
|
|
cairo_set_source_rgb (cr, 0.4, 0.4, 0.4);
|
|
|
|
cairo_fill (cr);
|
|
|
|
|
|
|
|
/* Only works for CHECK_SIZE a power of 2 */
|
|
|
|
j = x & (-CHECK_SIZE);
|
|
|
|
|
|
|
|
for (; j < height; j += CHECK_SIZE)
|
2001-04-18 18:09:18 +00:00
|
|
|
{
|
2020-05-12 19:42:37 +00:00
|
|
|
i = y & (-CHECK_SIZE);
|
|
|
|
for (; i < width; i += CHECK_SIZE)
|
|
|
|
if ((i / CHECK_SIZE + j / CHECK_SIZE) % 2 == 0)
|
2010-07-16 22:18:35 +00:00
|
|
|
cairo_rectangle (cr, i, j, CHECK_SIZE, CHECK_SIZE);
|
2020-05-12 19:42:37 +00:00
|
|
|
}
|
2008-07-06 07:24:02 +00:00
|
|
|
|
2020-05-12 19:42:37 +00:00
|
|
|
cairo_set_source_rgb (cr, 0.7, 0.7, 0.7);
|
|
|
|
cairo_fill (cr);
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2020-05-12 19:42:37 +00:00
|
|
|
#undef CHECK_SIZE
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Draw a red, green, and blue circle equally spaced inside
|
|
|
|
* the larger circle of radius r at (xc, yc)
|
|
|
|
*/
|
|
|
|
static void
|
|
|
|
draw_3circles (cairo_t *cr,
|
|
|
|
double xc, double yc,
|
|
|
|
double radius,
|
|
|
|
double alpha)
|
|
|
|
{
|
|
|
|
double subradius = radius * (2 / 3. - 0.1);
|
|
|
|
|
|
|
|
cairo_set_source_rgba (cr, 1., 0., 0., alpha);
|
|
|
|
oval_path (cr,
|
|
|
|
xc + radius / 3. * cos (G_PI * (0.5)),
|
|
|
|
yc - radius / 3. * sin (G_PI * (0.5)),
|
|
|
|
subradius, subradius);
|
|
|
|
cairo_fill (cr);
|
|
|
|
|
|
|
|
cairo_set_source_rgba (cr, 0., 1., 0., alpha);
|
|
|
|
oval_path (cr,
|
|
|
|
xc + radius / 3. * cos (G_PI * (0.5 + 2/.3)),
|
|
|
|
yc - radius / 3. * sin (G_PI * (0.5 + 2/.3)),
|
|
|
|
subradius, subradius);
|
|
|
|
cairo_fill (cr);
|
|
|
|
|
|
|
|
cairo_set_source_rgba (cr, 0., 0., 1., alpha);
|
|
|
|
oval_path (cr,
|
|
|
|
xc + radius / 3. * cos (G_PI * (0.5 + 4/.3)),
|
|
|
|
yc - radius / 3. * sin (G_PI * (0.5 + 4/.3)),
|
|
|
|
subradius, subradius);
|
|
|
|
cairo_fill (cr);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
groups_draw (GtkDrawingArea *darea,
|
|
|
|
cairo_t *cr,
|
|
|
|
int width,
|
|
|
|
int height,
|
|
|
|
gpointer data)
|
|
|
|
{
|
|
|
|
cairo_surface_t *overlay, *punch, *circles;
|
|
|
|
cairo_t *overlay_cr, *punch_cr, *circles_cr;
|
|
|
|
|
|
|
|
/* Fill the background */
|
|
|
|
double radius = 0.5 * (width < height ? width : height) - 10;
|
|
|
|
double xc = width / 2.;
|
|
|
|
double yc = height / 2.;
|
|
|
|
|
|
|
|
overlay = cairo_surface_create_similar (cairo_get_target (cr),
|
|
|
|
CAIRO_CONTENT_COLOR_ALPHA,
|
|
|
|
width, height);
|
|
|
|
|
|
|
|
punch = cairo_surface_create_similar (cairo_get_target (cr),
|
|
|
|
CAIRO_CONTENT_ALPHA,
|
|
|
|
width, height);
|
|
|
|
|
|
|
|
circles = cairo_surface_create_similar (cairo_get_target (cr),
|
|
|
|
CAIRO_CONTENT_COLOR_ALPHA,
|
|
|
|
width, height);
|
|
|
|
|
|
|
|
fill_checks (cr, 0, 0, width, height);
|
|
|
|
|
|
|
|
/* Draw a black circle on the overlay
|
|
|
|
*/
|
|
|
|
overlay_cr = cairo_create (overlay);
|
|
|
|
cairo_set_source_rgb (overlay_cr, 0., 0., 0.);
|
|
|
|
oval_path (overlay_cr, xc, yc, radius, radius);
|
|
|
|
cairo_fill (overlay_cr);
|
|
|
|
|
|
|
|
/* Draw 3 circles to the punch surface, then cut
|
|
|
|
* that out of the main circle in the overlay
|
|
|
|
*/
|
|
|
|
punch_cr = cairo_create (punch);
|
|
|
|
draw_3circles (punch_cr, xc, yc, radius, 1.0);
|
|
|
|
cairo_destroy (punch_cr);
|
|
|
|
|
|
|
|
cairo_set_operator (overlay_cr, CAIRO_OPERATOR_DEST_OUT);
|
|
|
|
cairo_set_source_surface (overlay_cr, punch, 0, 0);
|
|
|
|
cairo_paint (overlay_cr);
|
|
|
|
|
|
|
|
/* Now draw the 3 circles in a subgroup again
|
|
|
|
* at half intensity, and use OperatorAdd to join up
|
|
|
|
* without seams.
|
|
|
|
*/
|
|
|
|
circles_cr = cairo_create (circles);
|
|
|
|
|
|
|
|
cairo_set_operator (circles_cr, CAIRO_OPERATOR_OVER);
|
|
|
|
draw_3circles (circles_cr, xc, yc, radius, 0.5);
|
|
|
|
cairo_destroy (circles_cr);
|
|
|
|
|
|
|
|
cairo_set_operator (overlay_cr, CAIRO_OPERATOR_ADD);
|
|
|
|
cairo_set_source_surface (overlay_cr, circles, 0, 0);
|
|
|
|
cairo_paint (overlay_cr);
|
|
|
|
|
|
|
|
cairo_destroy (overlay_cr);
|
|
|
|
|
|
|
|
cairo_set_source_surface (cr, overlay, 0, 0);
|
|
|
|
cairo_paint (cr);
|
|
|
|
|
|
|
|
cairo_surface_destroy (overlay);
|
|
|
|
cairo_surface_destroy (punch);
|
|
|
|
cairo_surface_destroy (circles);
|
2001-04-18 18:09:18 +00:00
|
|
|
}
|
|
|
|
|
2006-12-23 02:39:45 +00:00
|
|
|
static void
|
|
|
|
close_window (void)
|
|
|
|
{
|
|
|
|
window = NULL;
|
|
|
|
|
2010-08-12 21:38:17 +00:00
|
|
|
if (surface)
|
2010-10-16 18:16:19 +00:00
|
|
|
cairo_surface_destroy (surface);
|
2010-08-12 21:38:17 +00:00
|
|
|
surface = NULL;
|
2006-12-23 02:39:45 +00:00
|
|
|
}
|
|
|
|
|
2001-04-18 18:09:18 +00:00
|
|
|
GtkWidget *
|
2003-11-08 22:08:05 +00:00
|
|
|
do_drawingarea (GtkWidget *do_widget)
|
2001-04-18 18:09:18 +00:00
|
|
|
{
|
|
|
|
GtkWidget *frame;
|
|
|
|
GtkWidget *vbox;
|
|
|
|
GtkWidget *da;
|
|
|
|
GtkWidget *label;
|
2018-01-01 15:09:31 +00:00
|
|
|
GtkGesture *drag;
|
2008-08-11 19:12:58 +00:00
|
|
|
|
2001-04-18 18:09:18 +00:00
|
|
|
if (!window)
|
|
|
|
{
|
2020-02-14 19:55:36 +00:00
|
|
|
window = gtk_window_new ();
|
2017-10-31 06:41:15 +00:00
|
|
|
gtk_window_set_display (GTK_WINDOW (window),
|
|
|
|
gtk_widget_get_display (do_widget));
|
2001-04-18 18:09:18 +00:00
|
|
|
gtk_window_set_title (GTK_WINDOW (window), "Drawing Area");
|
2020-11-09 23:50:43 +00:00
|
|
|
gtk_window_set_default_size (GTK_WINDOW (window), 250, -1);
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2015-06-28 13:23:28 +00:00
|
|
|
g_signal_connect (window, "destroy",
|
|
|
|
G_CALLBACK (close_window), NULL);
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2010-10-31 17:07:20 +00:00
|
|
|
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
|
2020-02-26 01:57:20 +00:00
|
|
|
gtk_widget_set_margin_start (vbox, 16);
|
|
|
|
gtk_widget_set_margin_end (vbox, 16);
|
|
|
|
gtk_widget_set_margin_top (vbox, 16);
|
|
|
|
gtk_widget_set_margin_bottom (vbox, 16);
|
2020-05-02 21:26:54 +00:00
|
|
|
gtk_window_set_child (GTK_WINDOW (window), vbox);
|
2001-04-18 18:09:18 +00:00
|
|
|
|
|
|
|
/*
|
2020-05-12 19:42:37 +00:00
|
|
|
* Create the groups area
|
2001-04-18 18:09:18 +00:00
|
|
|
*/
|
2020-11-02 13:38:20 +00:00
|
|
|
label = gtk_label_new ("Knockout groups");
|
|
|
|
gtk_widget_add_css_class (label, "heading");
|
2020-05-09 12:26:52 +00:00
|
|
|
gtk_box_append (GTK_BOX (vbox), label);
|
2008-08-11 19:12:58 +00:00
|
|
|
|
2001-04-18 18:09:18 +00:00
|
|
|
frame = gtk_frame_new (NULL);
|
2017-10-07 00:41:30 +00:00
|
|
|
gtk_widget_set_vexpand (frame, TRUE);
|
2020-05-09 12:26:52 +00:00
|
|
|
gtk_box_append (GTK_BOX (vbox), frame);
|
2008-08-11 19:12:58 +00:00
|
|
|
|
2023-06-18 16:59:51 +00:00
|
|
|
da = g_object_new (GTK_TYPE_DRAWING_AREA,
|
|
|
|
"accessible-role", GTK_ACCESSIBLE_ROLE_IMG,
|
|
|
|
NULL);
|
|
|
|
gtk_frame_set_child (GTK_FRAME (frame), da);
|
|
|
|
gtk_accessible_update_relation (GTK_ACCESSIBLE (da),
|
|
|
|
GTK_ACCESSIBLE_RELATION_LABELLED_BY, label, NULL,
|
|
|
|
-1);
|
|
|
|
|
2016-11-18 05:16:38 +00:00
|
|
|
gtk_drawing_area_set_content_width (GTK_DRAWING_AREA (da), 100);
|
|
|
|
gtk_drawing_area_set_content_height (GTK_DRAWING_AREA (da), 100);
|
2020-05-12 19:42:37 +00:00
|
|
|
gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (da), groups_draw, NULL, NULL);
|
2001-04-18 18:09:18 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Create the scribble area
|
|
|
|
*/
|
2008-08-11 19:12:58 +00:00
|
|
|
|
2020-11-02 13:38:20 +00:00
|
|
|
label = gtk_label_new ("Scribble area");
|
|
|
|
gtk_widget_add_css_class (label, "heading");
|
2020-05-09 12:26:52 +00:00
|
|
|
gtk_box_append (GTK_BOX (vbox), label);
|
2008-08-11 19:12:58 +00:00
|
|
|
|
2001-04-18 18:09:18 +00:00
|
|
|
frame = gtk_frame_new (NULL);
|
2017-10-07 00:41:30 +00:00
|
|
|
gtk_widget_set_vexpand (frame, TRUE);
|
2020-05-09 12:26:52 +00:00
|
|
|
gtk_box_append (GTK_BOX (vbox), frame);
|
2008-08-11 19:12:58 +00:00
|
|
|
|
2023-06-18 16:59:51 +00:00
|
|
|
da = g_object_new (GTK_TYPE_DRAWING_AREA,
|
|
|
|
"accessible-role", GTK_ACCESSIBLE_ROLE_IMG,
|
|
|
|
NULL);
|
|
|
|
gtk_frame_set_child (GTK_FRAME (frame), da);
|
|
|
|
gtk_accessible_update_relation (GTK_ACCESSIBLE (da),
|
|
|
|
GTK_ACCESSIBLE_RELATION_LABELLED_BY, label, NULL,
|
|
|
|
-1);
|
|
|
|
|
2016-11-18 05:16:38 +00:00
|
|
|
gtk_drawing_area_set_content_width (GTK_DRAWING_AREA (da), 100);
|
|
|
|
gtk_drawing_area_set_content_height (GTK_DRAWING_AREA (da), 100);
|
|
|
|
gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (da), scribble_draw, NULL, NULL);
|
2001-04-18 18:09:18 +00:00
|
|
|
|
2020-05-05 15:53:25 +00:00
|
|
|
g_signal_connect (da, "resize",
|
|
|
|
G_CALLBACK (scribble_resize), NULL);
|
2008-08-11 19:12:58 +00:00
|
|
|
|
2018-03-10 17:05:57 +00:00
|
|
|
drag = gtk_gesture_drag_new ();
|
2023-02-02 10:48:51 +00:00
|
|
|
gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (drag), 0);
|
2018-03-10 17:05:57 +00:00
|
|
|
gtk_widget_add_controller (da, GTK_EVENT_CONTROLLER (drag));
|
2018-01-01 15:09:31 +00:00
|
|
|
|
|
|
|
g_signal_connect (drag, "drag-begin", G_CALLBACK (drag_begin), da);
|
|
|
|
g_signal_connect (drag, "drag-update", G_CALLBACK (drag_update), da);
|
2018-01-03 08:59:19 +00:00
|
|
|
g_signal_connect (drag, "drag-end", G_CALLBACK (drag_end), da);
|
2018-03-10 17:05:57 +00:00
|
|
|
|
2001-04-18 18:09:18 +00:00
|
|
|
}
|
|
|
|
|
2010-03-01 06:47:38 +00:00
|
|
|
if (!gtk_widget_get_visible (window))
|
2023-06-18 16:59:51 +00:00
|
|
|
gtk_window_present (GTK_WINDOW (window));
|
2001-04-18 18:09:18 +00:00
|
|
|
else
|
2020-05-09 14:26:22 +00:00
|
|
|
gtk_window_destroy (GTK_WINDOW (window));
|
2001-04-18 18:09:18 +00:00
|
|
|
|
|
|
|
return window;
|
|
|
|
}
|