Commit dfca2d79 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

renamed parameters and removed useless #includes.

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

	* app/gui/file-dialog-utils.[ch]: renamed parameters and removed
	useless #includes.
parent f5c070ea
2004-02-27 Michael Natterer <mitch@gimp.org>
* app/gui/file-dialog-utils.[ch]: renamed parameters and removed
useless #includes.
2004-02-27 Michael Natterer <mitch@gimp.org>
* app/widgets/Makefile.am
......@@ -19,30 +19,17 @@
#include "config.h"
#include <string.h>
#include <gtk/gtk.h>
#include "libgimpwidgets/gimpwidgets.h"
#include "gui-types.h"
#include "core/gimp.h"
#include "plug-in/plug-in-proc.h"
#include "widgets/gimpdialogfactory.h"
#include "widgets/gimpfiledialog.h"
#include "widgets/gimpitemfactory.h"
#include "widgets/gimpmenufactory.h"
#include "file-dialog-utils.h"
#include "gimp-intl.h"
void
file_dialog_show (GtkWidget *filesel,
file_dialog_show (GtkWidget *dialog,
GtkWidget *parent)
{
gimp_item_factories_set_sensitive ("<Toolbox>", "/File/Open...", FALSE);
......@@ -52,17 +39,17 @@ file_dialog_show (GtkWidget *filesel,
gimp_item_factories_set_sensitive ("<Image>", "/File/Save as...", FALSE);
gimp_item_factories_set_sensitive ("<Image>", "/File/Save a Copy...", FALSE);
gtk_window_set_screen (GTK_WINDOW (filesel),
gtk_window_set_screen (GTK_WINDOW (dialog),
gtk_widget_get_screen (parent));
gtk_widget_grab_focus (GTK_FILE_SELECTION (filesel)->selection_entry);
gtk_window_present (GTK_WINDOW (filesel));
gtk_widget_grab_focus (GTK_FILE_SELECTION (dialog)->selection_entry);
gtk_window_present (GTK_WINDOW (dialog));
}
void
file_dialog_hide (GtkWidget *filesel)
file_dialog_hide (GtkWidget *dialog)
{
gtk_widget_hide (filesel);
gtk_widget_hide (dialog);
gimp_item_factories_set_sensitive ("<Toolbox>", "/File/Open...", TRUE);
......
......@@ -20,9 +20,9 @@
#define __FILE_DIALOG_UTILS_H__
void file_dialog_show (GtkWidget *filesel,
GtkWidget *parent);
void file_dialog_hide (GtkWidget *filesel);
void file_dialog_show (GtkWidget *dialog,
GtkWidget *parent);
void file_dialog_hide (GtkWidget *dialog);
#endif /* __FILE_DIALOG_UTILS_H__ */
......@@ -19,30 +19,17 @@
#include "config.h"
#include <string.h>
#include <gtk/gtk.h>
#include "libgimpwidgets/gimpwidgets.h"
#include "gui-types.h"
#include "core/gimp.h"
#include "plug-in/plug-in-proc.h"
#include "widgets/gimpdialogfactory.h"
#include "widgets/gimpfiledialog.h"
#include "widgets/gimpitemfactory.h"
#include "widgets/gimpmenufactory.h"
#include "file-dialog-utils.h"
#include "gimp-intl.h"
void
file_dialog_show (GtkWidget *filesel,
file_dialog_show (GtkWidget *dialog,
GtkWidget *parent)
{
gimp_item_factories_set_sensitive ("<Toolbox>", "/File/Open...", FALSE);
......@@ -52,17 +39,17 @@ file_dialog_show (GtkWidget *filesel,
gimp_item_factories_set_sensitive ("<Image>", "/File/Save as...", FALSE);
gimp_item_factories_set_sensitive ("<Image>", "/File/Save a Copy...", FALSE);
gtk_window_set_screen (GTK_WINDOW (filesel),
gtk_window_set_screen (GTK_WINDOW (dialog),
gtk_widget_get_screen (parent));
gtk_widget_grab_focus (GTK_FILE_SELECTION (filesel)->selection_entry);
gtk_window_present (GTK_WINDOW (filesel));
gtk_widget_grab_focus (GTK_FILE_SELECTION (dialog)->selection_entry);
gtk_window_present (GTK_WINDOW (dialog));
}
void
file_dialog_hide (GtkWidget *filesel)
file_dialog_hide (GtkWidget *dialog)
{
gtk_widget_hide (filesel);
gtk_widget_hide (dialog);
gimp_item_factories_set_sensitive ("<Toolbox>", "/File/Open...", TRUE);
......
......@@ -20,9 +20,9 @@
#define __FILE_DIALOG_UTILS_H__
void file_dialog_show (GtkWidget *filesel,
GtkWidget *parent);
void file_dialog_hide (GtkWidget *filesel);
void file_dialog_show (GtkWidget *dialog,
GtkWidget *parent);
void file_dialog_hide (GtkWidget *dialog);
#endif /* __FILE_DIALOG_UTILS_H__ */
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