Commit 771e1ea3 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

changed return value from gboolean to void because the function is no

2004-02-26  Michael Natterer  <mitch@gimp.org>

	* app/gui/file-dialog-utils.[ch] (file_dialog_hide): changed
	return value from gboolean to void because the function is no
	longer used as "delete_event" callback.

	* app/gui/file-open-dialog.c
	* app/gui/file-save-dialog.c: removed unused #includes.
parent 55686445
2004-02-26 Michael Natterer <mitch@gimp.org>
* app/gui/file-dialog-utils.[ch] (file_dialog_hide): changed
return value from gboolean to void because the function is no
longer used as "delete_event" callback.
* app/gui/file-open-dialog.c
* app/gui/file-save-dialog.c: removed unused #includes.
2004-02-26 Michael Natterer <mitch@gimp.org>
* app/file/file-open.c (file_open_image): added missing cast.
......@@ -139,7 +139,7 @@ file_dialog_show (GtkWidget *filesel,
gtk_window_present (GTK_WINDOW (filesel));
}
gboolean
void
file_dialog_hide (GtkWidget *filesel)
{
gtk_widget_hide (filesel);
......@@ -150,9 +150,6 @@ file_dialog_hide (GtkWidget *filesel)
gimp_item_factories_set_sensitive ("<Image>", "/File/Save", TRUE);
gimp_item_factories_set_sensitive ("<Image>", "/File/Save as...", TRUE);
gimp_item_factories_set_sensitive ("<Image>", "/File/Save a Copy...", TRUE);
/* return TRUE because we are used as "delete_event" handler */
return TRUE;
}
void
......
......@@ -31,7 +31,7 @@ GtkWidget * file_dialog_new (Gimp *gimp,
void file_dialog_show (GtkWidget *filesel,
GtkWidget *parent);
gboolean file_dialog_hide (GtkWidget *filesel);
void file_dialog_hide (GtkWidget *filesel);
void file_dialog_update_name (PlugInProcDef *proc,
GtkFileSelection *filesel);
......
......@@ -19,35 +19,18 @@
#include "config.h"
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <gtk/gtk.h>
#include "libgimpmath/gimpmath.h"
#include "libgimpthumb/gimpthumb.h"
#include "libgimpwidgets/gimpwidgets.h"
#include "gui-types.h"
#include "config/gimpcoreconfig.h"
#include "base/temp-buf.h"
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
#include "core/gimpimage-new.h"
#include "core/gimpimagefile.h"
#include "plug-in/plug-in-proc.h"
......@@ -57,9 +40,7 @@
#include "widgets/gimphelp-ids.h"
#include "widgets/gimpmenufactory.h"
#include "widgets/gimppreview.h"
#include "widgets/gimpthumbbox.h"
#include "widgets/gimpwidgets-utils.h"
#include "dialogs.h"
#include "file-dialog-utils.h"
......
......@@ -19,14 +19,7 @@
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <gtk/gtk.h>
......@@ -35,7 +28,6 @@
#include "gui-types.h"
#include "core/gimp.h"
#include "core/gimpdrawable.h"
#include "core/gimpimage.h"
#include "plug-in/plug-in-proc.h"
......@@ -340,9 +332,7 @@ file_save_overwrite_callback (GtkWidget *widget,
gboolean overwrite,
gpointer data)
{
OverwriteData *overwrite_data;
overwrite_data = (OverwriteData *) data;
OverwriteData *overwrite_data = data;
if (overwrite)
{
......
......@@ -139,7 +139,7 @@ file_dialog_show (GtkWidget *filesel,
gtk_window_present (GTK_WINDOW (filesel));
}
gboolean
void
file_dialog_hide (GtkWidget *filesel)
{
gtk_widget_hide (filesel);
......@@ -150,9 +150,6 @@ file_dialog_hide (GtkWidget *filesel)
gimp_item_factories_set_sensitive ("<Image>", "/File/Save", TRUE);
gimp_item_factories_set_sensitive ("<Image>", "/File/Save as...", TRUE);
gimp_item_factories_set_sensitive ("<Image>", "/File/Save a Copy...", TRUE);
/* return TRUE because we are used as "delete_event" handler */
return TRUE;
}
void
......
......@@ -31,7 +31,7 @@ GtkWidget * file_dialog_new (Gimp *gimp,
void file_dialog_show (GtkWidget *filesel,
GtkWidget *parent);
gboolean file_dialog_hide (GtkWidget *filesel);
void file_dialog_hide (GtkWidget *filesel);
void file_dialog_update_name (PlugInProcDef *proc,
GtkFileSelection *filesel);
......
......@@ -19,35 +19,18 @@
#include "config.h"
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <gtk/gtk.h>
#include "libgimpmath/gimpmath.h"
#include "libgimpthumb/gimpthumb.h"
#include "libgimpwidgets/gimpwidgets.h"
#include "gui-types.h"
#include "config/gimpcoreconfig.h"
#include "base/temp-buf.h"
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
#include "core/gimpimage-new.h"
#include "core/gimpimagefile.h"
#include "plug-in/plug-in-proc.h"
......@@ -57,9 +40,7 @@
#include "widgets/gimphelp-ids.h"
#include "widgets/gimpmenufactory.h"
#include "widgets/gimppreview.h"
#include "widgets/gimpthumbbox.h"
#include "widgets/gimpwidgets-utils.h"
#include "dialogs.h"
#include "file-dialog-utils.h"
......
......@@ -19,14 +19,7 @@
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <gtk/gtk.h>
......@@ -35,7 +28,6 @@
#include "gui-types.h"
#include "core/gimp.h"
#include "core/gimpdrawable.h"
#include "core/gimpimage.h"
#include "plug-in/plug-in-proc.h"
......@@ -340,9 +332,7 @@ file_save_overwrite_callback (GtkWidget *widget,
gboolean overwrite,
gpointer data)
{
OverwriteData *overwrite_data;
overwrite_data = (OverwriteData *) data;
OverwriteData *overwrite_data = data;
if (overwrite)
{
......
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