mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
free the memory allocated for the GimpLut structure. Removed trailing
2003-09-05 Sven Neumann <sven@gimp.org> * app/base/gimplut.[ch] (gimp_lut_free): free the memory allocated for the GimpLut structure. Removed trailing whitespace. * app/core/gimpbuffer.c: cosmetics. * app/core/gimpedit.[ch]: let gimp_edit_cut() and gimp_edit_copy() return a pointer to the global cut buffer instead of creating a GimpBuffer which was leaked by most callers. * app/gui/edit-commands.c: changed accordingly. * libgimpwidgets/gimpquerybox.[ch] (string_query_box_ok_callback): removed a superfluous g_strdup(); made GimpQueryStringCallback take a const gchar* pointer. * app/gui/edit-commands.c * app/gui/file-commands.c * app/gui/palettes-commands.c: changed accordingly.
This commit is contained in:
parent
7dc961ad50
commit
8e38f70b96
16 changed files with 170 additions and 138 deletions
|
@ -1,16 +1,16 @@
|
|||
/* LIBGIMP - The GIMP Library
|
||||
/* LIBGIMP - The GIMP Library
|
||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||
*
|
||||
* gimpquerybox.h
|
||||
* Copyright (C) 1999-2000 Michael Natterer <mitch@gimp.org>
|
||||
*
|
||||
* Copyright (C) 1999-2000 Michael Natterer <mitch@gimp.org>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
|
@ -18,7 +18,7 @@
|
|||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_QUERY_BOX_H__
|
||||
#define __GIMP_QUERY_BOX_H__
|
||||
|
@ -29,26 +29,26 @@ G_BEGIN_DECLS
|
|||
|
||||
|
||||
/* query box callback prototypes */
|
||||
typedef void (* GimpQueryStringCallback) (GtkWidget *query_box,
|
||||
gchar *string,
|
||||
gpointer data);
|
||||
typedef void (* GimpQueryStringCallback) (GtkWidget *query_box,
|
||||
const gchar *string,
|
||||
gpointer data);
|
||||
|
||||
typedef void (* GimpQueryIntCallback) (GtkWidget *query_box,
|
||||
gint value,
|
||||
gpointer data);
|
||||
typedef void (* GimpQueryIntCallback) (GtkWidget *query_box,
|
||||
gint value,
|
||||
gpointer data);
|
||||
|
||||
typedef void (* GimpQueryDoubleCallback) (GtkWidget *query_box,
|
||||
gdouble value,
|
||||
gpointer data);
|
||||
typedef void (* GimpQueryDoubleCallback) (GtkWidget *query_box,
|
||||
gdouble value,
|
||||
gpointer data);
|
||||
|
||||
typedef void (* GimpQuerySizeCallback) (GtkWidget *query_box,
|
||||
gdouble size,
|
||||
GimpUnit unit,
|
||||
gpointer data);
|
||||
typedef void (* GimpQuerySizeCallback) (GtkWidget *query_box,
|
||||
gdouble size,
|
||||
GimpUnit unit,
|
||||
gpointer data);
|
||||
|
||||
typedef void (* GimpQueryBooleanCallback) (GtkWidget *query_box,
|
||||
gboolean value,
|
||||
gpointer data);
|
||||
typedef void (* GimpQueryBooleanCallback) (GtkWidget *query_box,
|
||||
gboolean value,
|
||||
gpointer data);
|
||||
|
||||
|
||||
#define GIMP_QUERY_BOX_VBOX(qbox) g_object_get_data (G_OBJECT (qbox), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue