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:

committed by
Sven Neumann

parent
7dc961ad50
commit
8e38f70b96
@ -2,15 +2,15 @@
|
||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||
*
|
||||
* gimpquerybox.c
|
||||
* 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
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
@ -531,13 +531,13 @@ static void
|
||||
string_query_box_ok_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
QueryBox *query_box;
|
||||
gchar *string;
|
||||
QueryBox *query_box;
|
||||
const gchar *string;
|
||||
|
||||
query_box = query_box_disconnect (data);
|
||||
|
||||
/* Get the entry data */
|
||||
string = g_strdup (gtk_entry_get_text (GTK_ENTRY (query_box->entry)));
|
||||
string = gtk_entry_get_text (GTK_ENTRY (query_box->entry));
|
||||
|
||||
/* Call the user defined callback */
|
||||
(* (GimpQueryStringCallback) query_box->callback) (query_box->qbox,
|
||||
|
Reference in New Issue
Block a user