2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2001-04-19 03:14:20 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2001-04-19 03:14:20 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2001-04-19 03:14:20 +08:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2001-04-19 03:14:20 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2008-10-10 04:24:04 +08:00
|
|
|
#include <gegl.h>
|
2001-04-19 03:14:20 +08:00
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#include "libgimpmath/gimpmath.h"
|
|
|
|
#include "libgimpwidgets/gimpwidgets.h"
|
|
|
|
|
2004-09-13 23:15:23 +08:00
|
|
|
#include "dialogs-types.h"
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-04-15 07:37:34 +08:00
|
|
|
#include "core/gimp.h"
|
2001-12-06 20:21:54 +08:00
|
|
|
#include "core/gimpchannel.h"
|
2006-09-01 19:26:54 +08:00
|
|
|
#include "core/gimpcontext.h"
|
2001-05-09 10:32:03 +08:00
|
|
|
#include "core/gimpdrawable.h"
|
|
|
|
#include "core/gimpdrawable-offset.h"
|
2006-10-04 03:58:46 +08:00
|
|
|
#include "core/gimpitem.h"
|
2001-12-06 20:21:54 +08:00
|
|
|
#include "core/gimplayer.h"
|
|
|
|
#include "core/gimplayermask.h"
|
2001-05-09 10:32:03 +08:00
|
|
|
#include "core/gimpimage.h"
|
|
|
|
|
2003-08-21 23:54:47 +08:00
|
|
|
#include "widgets/gimphelp-ids.h"
|
2002-08-31 05:00:42 +08:00
|
|
|
#include "widgets/gimpviewabledialog.h"
|
|
|
|
|
2001-12-04 01:59:48 +08:00
|
|
|
#include "offset-dialog.h"
|
|
|
|
|
2003-03-26 00:38:19 +08:00
|
|
|
#include "gimp-intl.h"
|
2001-04-19 03:14:20 +08:00
|
|
|
|
|
|
|
|
2004-05-03 08:10:24 +08:00
|
|
|
#define WRAP_AROUND (1 << 3)
|
|
|
|
#define FILL_MASK (GIMP_OFFSET_BACKGROUND | GIMP_OFFSET_TRANSPARENT)
|
|
|
|
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2007-05-24 04:08:27 +08:00
|
|
|
typedef struct
|
2001-04-19 03:14:20 +08:00
|
|
|
{
|
2006-09-01 19:26:54 +08:00
|
|
|
GimpContext *context;
|
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
GtkWidget *dialog;
|
2001-04-19 04:41:15 +08:00
|
|
|
GtkWidget *off_se;
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2001-04-19 04:41:15 +08:00
|
|
|
GimpOffsetType fill_type;
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2006-03-29 01:08:36 +08:00
|
|
|
GimpImage *image;
|
2007-05-24 04:08:27 +08:00
|
|
|
} OffsetDialog;
|
2001-04-19 03:14:20 +08:00
|
|
|
|
|
|
|
|
2002-09-08 00:47:39 +08:00
|
|
|
/* local function prototypes */
|
|
|
|
|
2003-11-06 23:27:05 +08:00
|
|
|
static void offset_response (GtkWidget *widget,
|
|
|
|
gint response_id,
|
2006-04-12 20:49:29 +08:00
|
|
|
OffsetDialog *dialog);
|
2003-11-06 23:27:05 +08:00
|
|
|
static void offset_halfheight_callback (GtkWidget *widget,
|
2006-04-12 20:49:29 +08:00
|
|
|
OffsetDialog *dialog);
|
2007-05-24 04:08:27 +08:00
|
|
|
static void offset_dialog_free (OffsetDialog *dialog);
|
2001-04-19 03:14:20 +08:00
|
|
|
|
|
|
|
|
2002-09-08 00:47:39 +08:00
|
|
|
/* public functions */
|
|
|
|
|
2004-04-20 21:44:19 +08:00
|
|
|
GtkWidget *
|
|
|
|
offset_dialog_new (GimpDrawable *drawable,
|
2006-09-01 19:26:54 +08:00
|
|
|
GimpContext *context,
|
2004-04-20 21:44:19 +08:00
|
|
|
GtkWidget *parent)
|
2001-04-19 03:14:20 +08:00
|
|
|
{
|
2006-10-04 03:58:46 +08:00
|
|
|
GimpItem *item;
|
2004-10-24 03:01:26 +08:00
|
|
|
OffsetDialog *dialog;
|
2004-05-03 08:10:24 +08:00
|
|
|
GtkWidget *main_vbox;
|
2001-04-19 03:14:20 +08:00
|
|
|
GtkWidget *vbox;
|
2004-05-03 08:10:24 +08:00
|
|
|
GtkWidget *hbox;
|
|
|
|
GtkWidget *button;
|
2001-04-19 03:14:20 +08:00
|
|
|
GtkWidget *spinbutton;
|
|
|
|
GtkWidget *frame;
|
|
|
|
GtkWidget *radio_button;
|
2004-05-03 08:10:24 +08:00
|
|
|
GtkObject *adjustment;
|
2007-12-27 01:33:41 +08:00
|
|
|
gdouble xres;
|
|
|
|
gdouble yres;
|
2001-12-06 20:21:54 +08:00
|
|
|
const gchar *title = NULL;
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-04-20 21:44:19 +08:00
|
|
|
g_return_val_if_fail (GIMP_IS_DRAWABLE (drawable), NULL);
|
2006-09-01 19:26:54 +08:00
|
|
|
g_return_val_if_fail (GIMP_IS_CONTEXT (context), NULL);
|
2004-04-20 21:44:19 +08:00
|
|
|
g_return_val_if_fail (GTK_IS_WIDGET (parent), NULL);
|
2002-08-31 05:00:42 +08:00
|
|
|
|
2007-05-24 04:08:27 +08:00
|
|
|
dialog = g_slice_new0 (OffsetDialog);
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2006-09-01 19:26:54 +08:00
|
|
|
dialog->context = context;
|
2004-10-24 03:01:26 +08:00
|
|
|
dialog->fill_type = gimp_drawable_has_alpha (drawable) | WRAP_AROUND;
|
2006-10-04 03:58:46 +08:00
|
|
|
item = GIMP_ITEM (drawable);
|
|
|
|
dialog->image = gimp_item_get_image (item);
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2007-12-27 01:33:41 +08:00
|
|
|
gimp_image_get_resolution (dialog->image, &xres, &yres);
|
|
|
|
|
2001-12-06 20:21:54 +08:00
|
|
|
if (GIMP_IS_LAYER (drawable))
|
|
|
|
title = _("Offset Layer");
|
|
|
|
else if (GIMP_IS_LAYER_MASK (drawable))
|
|
|
|
title = _("Offset Layer Mask");
|
|
|
|
else if (GIMP_IS_CHANNEL (drawable))
|
|
|
|
title = _("Offset Channel");
|
|
|
|
else
|
2004-05-12 16:13:33 +08:00
|
|
|
g_warning ("%s: unexpected drawable type", G_STRFUNC);
|
2001-12-06 20:21:54 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
dialog->dialog =
|
2006-09-01 19:26:54 +08:00
|
|
|
gimp_viewable_dialog_new (GIMP_VIEWABLE (drawable), context,
|
2004-10-24 03:01:26 +08:00
|
|
|
_("Offset"), "gimp-drawable-offset",
|
|
|
|
GIMP_STOCK_TOOL_MOVE,
|
|
|
|
title,
|
|
|
|
parent,
|
|
|
|
gimp_standard_help_func,
|
|
|
|
GIMP_HELP_LAYER_OFFSET,
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
|
2005-09-14 02:21:07 +08:00
|
|
|
/* offset, used as a verb */
|
2005-09-02 20:09:32 +08:00
|
|
|
_("_Offset"), GTK_RESPONSE_OK,
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
NULL);
|
2002-09-08 00:47:39 +08:00
|
|
|
|
2005-02-09 04:40:33 +08:00
|
|
|
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog->dialog),
|
|
|
|
GTK_RESPONSE_OK,
|
|
|
|
GTK_RESPONSE_CANCEL,
|
|
|
|
-1);
|
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
gtk_window_set_resizable (GTK_WINDOW (dialog->dialog), FALSE);
|
2004-05-03 08:10:24 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
g_object_weak_ref (G_OBJECT (dialog->dialog),
|
2007-05-24 04:08:27 +08:00
|
|
|
(GWeakNotify) offset_dialog_free, dialog);
|
2002-09-08 00:47:39 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
g_signal_connect (dialog->dialog, "response",
|
2003-11-06 23:27:05 +08:00
|
|
|
G_CALLBACK (offset_response),
|
2004-10-24 03:01:26 +08:00
|
|
|
dialog);
|
2003-11-06 23:27:05 +08:00
|
|
|
|
2004-05-03 08:10:24 +08:00
|
|
|
main_vbox = gtk_vbox_new (FALSE, 12);
|
2004-05-04 22:21:13 +08:00
|
|
|
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
|
2010-10-30 20:56:00 +08:00
|
|
|
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog->dialog))),
|
|
|
|
main_vbox, TRUE, TRUE, 0);
|
2004-05-03 08:10:24 +08:00
|
|
|
gtk_widget_show (main_vbox);
|
|
|
|
|
|
|
|
/* The offset frame */
|
|
|
|
frame = gimp_frame_new (_("Offset"));
|
|
|
|
gtk_box_pack_start (GTK_BOX (main_vbox), frame, FALSE, FALSE, 0);
|
|
|
|
gtk_widget_show (frame);
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-05-03 08:10:24 +08:00
|
|
|
hbox = gtk_hbox_new (0, FALSE);
|
|
|
|
gtk_container_add (GTK_CONTAINER (frame), hbox);
|
|
|
|
gtk_widget_show (hbox);
|
|
|
|
|
|
|
|
vbox = gtk_vbox_new (6, FALSE);
|
|
|
|
gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, 0);
|
|
|
|
gtk_widget_show (vbox);
|
2002-09-08 00:47:39 +08:00
|
|
|
|
|
|
|
spinbutton = gimp_spin_button_new (&adjustment,
|
2008-08-27 03:32:14 +08:00
|
|
|
1, 1, 1, 1, 10, 0,
|
2002-09-08 00:47:39 +08:00
|
|
|
1, 2);
|
|
|
|
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
|
2003-11-06 23:27:05 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
dialog->off_se = gimp_size_entry_new (1, GIMP_UNIT_PIXEL, "%a",
|
|
|
|
TRUE, TRUE, FALSE, 10,
|
|
|
|
GIMP_SIZE_ENTRY_UPDATE_SIZE);
|
2004-05-26 21:39:23 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
gtk_table_set_col_spacing (GTK_TABLE (dialog->off_se), 0, 4);
|
|
|
|
gtk_table_set_col_spacing (GTK_TABLE (dialog->off_se), 1, 4);
|
|
|
|
gtk_table_set_row_spacing (GTK_TABLE (dialog->off_se), 0, 2);
|
2002-09-08 00:47:39 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
gimp_size_entry_add_field (GIMP_SIZE_ENTRY (dialog->off_se),
|
2001-04-19 03:14:20 +08:00
|
|
|
GTK_SPIN_BUTTON (spinbutton), NULL);
|
2004-10-24 03:01:26 +08:00
|
|
|
gtk_table_attach_defaults (GTK_TABLE (dialog->off_se), spinbutton,
|
2001-04-19 03:14:20 +08:00
|
|
|
1, 2, 0, 1);
|
|
|
|
gtk_widget_show (spinbutton);
|
2002-09-08 00:47:39 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
gimp_size_entry_attach_label (GIMP_SIZE_ENTRY (dialog->off_se),
|
2004-05-12 19:37:21 +08:00
|
|
|
_("_X:"), 0, 0, 0.0);
|
2004-10-24 03:01:26 +08:00
|
|
|
gimp_size_entry_attach_label (GIMP_SIZE_ENTRY (dialog->off_se),
|
2004-05-12 19:37:21 +08:00
|
|
|
_("_Y:"), 1, 0, 0.0);
|
2002-09-08 00:47:39 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
gtk_box_pack_start (GTK_BOX (vbox), dialog->off_se, FALSE, FALSE, 0);
|
|
|
|
gtk_widget_show (dialog->off_se);
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
gimp_size_entry_set_unit (GIMP_SIZE_ENTRY (dialog->off_se), GIMP_UNIT_PIXEL);
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
gimp_size_entry_set_resolution (GIMP_SIZE_ENTRY (dialog->off_se), 0,
|
2007-12-27 01:33:41 +08:00
|
|
|
xres, FALSE);
|
2004-10-24 03:01:26 +08:00
|
|
|
gimp_size_entry_set_resolution (GIMP_SIZE_ENTRY (dialog->off_se), 1,
|
2007-12-27 01:33:41 +08:00
|
|
|
yres, FALSE);
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
gimp_size_entry_set_refval_boundaries (GIMP_SIZE_ENTRY (dialog->off_se), 0,
|
2008-11-03 08:09:01 +08:00
|
|
|
- gimp_item_get_width (item),
|
|
|
|
gimp_item_get_width (item));
|
2004-10-24 03:01:26 +08:00
|
|
|
gimp_size_entry_set_refval_boundaries (GIMP_SIZE_ENTRY (dialog->off_se), 1,
|
2008-11-03 08:09:01 +08:00
|
|
|
- gimp_item_get_height (item),
|
|
|
|
gimp_item_get_height (item));
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
gimp_size_entry_set_size (GIMP_SIZE_ENTRY (dialog->off_se), 0,
|
2008-11-03 08:09:01 +08:00
|
|
|
0, gimp_item_get_width (item));
|
2004-10-24 03:01:26 +08:00
|
|
|
gimp_size_entry_set_size (GIMP_SIZE_ENTRY (dialog->off_se), 1,
|
2008-11-03 08:09:01 +08:00
|
|
|
0, gimp_item_get_height (item));
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (dialog->off_se), 0, 0);
|
|
|
|
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (dialog->off_se), 1, 0);
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-05-26 21:39:23 +08:00
|
|
|
button = gtk_button_new_with_mnemonic (_("Offset by x/_2, y/2"));
|
2002-09-08 00:47:39 +08:00
|
|
|
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
|
|
|
gtk_widget_show (button);
|
|
|
|
|
2003-01-06 06:07:10 +08:00
|
|
|
g_signal_connect (button, "clicked",
|
2006-04-12 20:49:29 +08:00
|
|
|
G_CALLBACK (offset_halfheight_callback),
|
|
|
|
dialog);
|
2001-12-06 20:21:54 +08:00
|
|
|
|
2005-02-14 18:50:16 +08:00
|
|
|
/* The edge behavior frame */
|
|
|
|
frame = gimp_int_radio_group_new (TRUE, _("Edge Behavior"),
|
2004-05-03 08:10:24 +08:00
|
|
|
G_CALLBACK (gimp_radio_button_update),
|
2004-10-24 03:01:26 +08:00
|
|
|
&dialog->fill_type, dialog->fill_type,
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-06-24 06:44:04 +08:00
|
|
|
_("_Wrap around"),
|
2004-05-03 08:10:24 +08:00
|
|
|
WRAP_AROUND, NULL,
|
2002-03-19 01:24:52 +08:00
|
|
|
|
2004-06-24 06:44:04 +08:00
|
|
|
_("Fill with _background color"),
|
2004-05-03 08:10:24 +08:00
|
|
|
GIMP_OFFSET_BACKGROUND, NULL,
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-06-24 06:44:04 +08:00
|
|
|
_("Make _transparent"),
|
2004-05-03 08:10:24 +08:00
|
|
|
GIMP_OFFSET_TRANSPARENT, &radio_button,
|
|
|
|
NULL);
|
2001-04-19 03:14:20 +08:00
|
|
|
|
|
|
|
if (! gimp_drawable_has_alpha (drawable))
|
|
|
|
gtk_widget_set_sensitive (radio_button, FALSE);
|
|
|
|
|
2004-05-03 08:10:24 +08:00
|
|
|
gtk_box_pack_start (GTK_BOX (main_vbox), frame, FALSE, FALSE, 0);
|
2001-12-06 20:21:54 +08:00
|
|
|
gtk_widget_show (frame);
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
return dialog->dialog;
|
2001-04-19 03:14:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-09-08 00:47:39 +08:00
|
|
|
/* private functions */
|
2001-04-19 03:14:20 +08:00
|
|
|
|
|
|
|
static void
|
2003-11-06 23:27:05 +08:00
|
|
|
offset_response (GtkWidget *widget,
|
|
|
|
gint response_id,
|
2004-10-24 03:01:26 +08:00
|
|
|
OffsetDialog *dialog)
|
2001-04-19 03:14:20 +08:00
|
|
|
{
|
2003-11-06 23:27:05 +08:00
|
|
|
if (response_id == GTK_RESPONSE_OK)
|
2001-04-19 03:14:20 +08:00
|
|
|
{
|
2007-07-19 22:59:51 +08:00
|
|
|
GimpImage *image = dialog->image;
|
2003-11-06 23:27:05 +08:00
|
|
|
|
2007-07-19 22:59:51 +08:00
|
|
|
if (image)
|
2003-11-06 23:27:05 +08:00
|
|
|
{
|
2007-07-19 22:59:51 +08:00
|
|
|
GimpDrawable *drawable = gimp_image_get_active_drawable (image);
|
|
|
|
gint offset_x;
|
|
|
|
gint offset_y;
|
2003-11-06 23:27:05 +08:00
|
|
|
|
2004-05-03 08:10:24 +08:00
|
|
|
offset_x =
|
2004-10-24 03:01:26 +08:00
|
|
|
RINT (gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (dialog->off_se),
|
2003-11-06 23:27:05 +08:00
|
|
|
0));
|
2004-05-03 08:10:24 +08:00
|
|
|
offset_y =
|
2004-10-24 03:01:26 +08:00
|
|
|
RINT (gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (dialog->off_se),
|
2003-11-06 23:27:05 +08:00
|
|
|
1));
|
|
|
|
|
|
|
|
gimp_drawable_offset (drawable,
|
2006-09-01 19:26:54 +08:00
|
|
|
dialog->context,
|
2004-10-24 03:01:26 +08:00
|
|
|
dialog->fill_type & WRAP_AROUND ? TRUE : FALSE,
|
|
|
|
dialog->fill_type & FILL_MASK,
|
2003-11-06 23:27:05 +08:00
|
|
|
offset_x, offset_y);
|
2006-03-29 01:08:36 +08:00
|
|
|
gimp_image_flush (image);
|
2003-11-06 23:27:05 +08:00
|
|
|
}
|
2001-04-19 03:14:20 +08:00
|
|
|
}
|
|
|
|
|
2004-10-24 03:01:26 +08:00
|
|
|
gtk_widget_destroy (dialog->dialog);
|
2001-04-19 03:14:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2003-11-06 23:27:05 +08:00
|
|
|
offset_halfheight_callback (GtkWidget *widget,
|
2004-10-24 03:01:26 +08:00
|
|
|
OffsetDialog *dialog)
|
2001-04-19 03:14:20 +08:00
|
|
|
{
|
2007-07-19 22:59:51 +08:00
|
|
|
GimpImage *image = dialog->image;
|
2001-04-19 03:14:20 +08:00
|
|
|
|
2006-10-04 03:58:46 +08:00
|
|
|
if (image)
|
|
|
|
{
|
2007-07-19 22:59:51 +08:00
|
|
|
GimpItem *item = GIMP_ITEM (gimp_image_get_active_drawable (image));
|
2006-10-04 03:58:46 +08:00
|
|
|
|
|
|
|
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (dialog->off_se),
|
2008-11-03 08:09:01 +08:00
|
|
|
0, gimp_item_get_width (item) / 2);
|
2006-10-04 03:58:46 +08:00
|
|
|
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (dialog->off_se),
|
2008-11-03 08:09:01 +08:00
|
|
|
1, gimp_item_get_height (item) / 2);
|
2006-10-04 03:58:46 +08:00
|
|
|
}
|
2001-04-19 03:14:20 +08:00
|
|
|
}
|
2007-05-24 04:08:27 +08:00
|
|
|
|
|
|
|
static void
|
|
|
|
offset_dialog_free (OffsetDialog *dialog)
|
|
|
|
{
|
|
|
|
g_slice_free (OffsetDialog, dialog);
|
|
|
|
}
|