Commit f77975a9 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

removed a superfluous g_strdup(); made GimpQueryStringCallback take a

2003-09-05  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpquerybox.[ch] (string_query_box_ok_callback):
	removed a superfluous g_strdup(); made GimpQueryStringCallback take
	a const gchar* pointer.

	* plug-ins/gflare/gflare.c: changed accordingly.
parent 8e38f70b
......@@ -17,7 +17,8 @@
* app/gui/edit-commands.c
* app/gui/file-commands.c
* app/gui/palettes-commands.c: changed accordingly.
* app/gui/palettes-commands.c
* plug-ins/gflare/gflare.c: changed accordingly.
2003-09-05 Sven Neumann <sven@gimp.org>
......@@ -687,34 +687,34 @@ static void dlg_make_page_selector (GFlareDialog *dlg,
GtkWidget *notebook);
static void dlg_selector_setup_listbox (void);
static void dlg_selector_insert (GFlare *gflare,
gint pos,
gint select);
static void dlg_selector_list_item_callback (GtkWidget *widget,
gpointer data);
static void dlg_selector_new_callback (GtkWidget *widget,
gpointer data);
static void dlg_selector_new_ok_callback (GtkWidget *widget,
gchar *new_name,
gpointer data);
static void dlg_selector_edit_callback (GtkWidget *widget,
gpointer data);
static void dlg_selector_edit_done_callback (gint updated,
gpointer data);
static void dlg_selector_copy_callback (GtkWidget *widget,
gpointer data);
static void dlg_selector_copy_ok_callback (GtkWidget *widget,
gchar *copy_name,
gpointer data);
static void dlg_selector_delete_callback (GtkWidget *widget,
gpointer data);
static void dlg_selector_do_delete_callback (GtkWidget *widget,
gboolean delete,
gpointer data);
static void dlg_selector_insert (GFlare *gflare,
gint pos,
gint select);
static void dlg_selector_list_item_callback (GtkWidget *widget,
gpointer data);
static void dlg_selector_new_callback (GtkWidget *widget,
gpointer data);
static void dlg_selector_new_ok_callback (GtkWidget *widget,
const gchar *new_name,
gpointer data);
static void dlg_selector_edit_callback (GtkWidget *widget,
gpointer data);
static void dlg_selector_edit_done_callback (gint updated,
gpointer data);
static void dlg_selector_copy_callback (GtkWidget *widget,
gpointer data);
static void dlg_selector_copy_ok_callback (GtkWidget *widget,
const gchar *copy_name,
gpointer data);
static void dlg_selector_delete_callback (GtkWidget *widget,
gpointer data);
static void dlg_selector_do_delete_callback (GtkWidget *widget,
gboolean delete,
gpointer data);
static void ed_run (GtkWindow *parent,
GFlare *target_gflare,
......@@ -1229,7 +1229,7 @@ gflare_copy (GFlare *dest,
static void
gflare_free (GFlare *gflare)
{
g_assert (gflare != NULL);
g_return_if_fail (gflare != NULL);
g_free (gflare->name);
g_free (gflare->filename);
......@@ -1245,7 +1245,7 @@ gflare_load (const gchar *filename,
GFlare *gflare;
gchar header[256];
g_assert (filename != NULL);
g_return_val_if_fail (filename != NULL, NULL);
fp = fopen (filename, "r");
if (!fp)
......@@ -2984,14 +2984,14 @@ dlg_selector_new_callback (GtkWidget *widget,
}
static void
dlg_selector_new_ok_callback (GtkWidget *widget,
gchar *new_name,
gpointer data)
dlg_selector_new_ok_callback (GtkWidget *widget,
const gchar *new_name,
gpointer data)
{
GFlare *gflare;
gint pos;
g_assert (new_name != NULL);
g_return_if_fail (new_name != NULL);
if (gflares_list_lookup (new_name))
{
......@@ -3058,14 +3058,14 @@ dlg_selector_copy_callback (GtkWidget *widget,
}
static void
dlg_selector_copy_ok_callback (GtkWidget *widget,
gchar *copy_name,
gpointer data)
dlg_selector_copy_ok_callback (GtkWidget *widget,
const gchar *copy_name,
gpointer data)
{
GFlare *gflare;
gint pos;
g_assert (copy_name != NULL);
g_return_if_fail (copy_name != NULL);
if (gflares_list_lookup (copy_name))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment