From dfca2d79e31720c1a29a244acd5f891ccdeaa14d Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 27 Feb 2004 14:51:51 +0000 Subject: [PATCH] renamed parameters and removed useless #includes. 2004-02-27 Michael Natterer * app/gui/file-dialog-utils.[ch]: renamed parameters and removed useless #includes. --- ChangeLog | 5 +++++ app/dialogs/file-dialog-utils.c | 25 ++++++------------------- app/dialogs/file-dialog-utils.h | 6 +++--- app/gui/file-dialog-utils.c | 25 ++++++------------------- app/gui/file-dialog-utils.h | 6 +++--- 5 files changed, 23 insertions(+), 44 deletions(-) diff --git a/ChangeLog b/ChangeLog index ad23e3943c..6f343cfdd8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-02-27 Michael Natterer + + * app/gui/file-dialog-utils.[ch]: renamed parameters and removed + useless #includes. + 2004-02-27 Michael Natterer * app/widgets/Makefile.am diff --git a/app/dialogs/file-dialog-utils.c b/app/dialogs/file-dialog-utils.c index c22a15e70b..eb4959f2e2 100644 --- a/app/dialogs/file-dialog-utils.c +++ b/app/dialogs/file-dialog-utils.c @@ -19,30 +19,17 @@ #include "config.h" -#include - #include -#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 ("", "/File/Open...", FALSE); @@ -52,17 +39,17 @@ file_dialog_show (GtkWidget *filesel, gimp_item_factories_set_sensitive ("", "/File/Save as...", FALSE); gimp_item_factories_set_sensitive ("", "/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 ("", "/File/Open...", TRUE); diff --git a/app/dialogs/file-dialog-utils.h b/app/dialogs/file-dialog-utils.h index 13b9f4452c..e405c68c7e 100644 --- a/app/dialogs/file-dialog-utils.h +++ b/app/dialogs/file-dialog-utils.h @@ -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__ */ diff --git a/app/gui/file-dialog-utils.c b/app/gui/file-dialog-utils.c index c22a15e70b..eb4959f2e2 100644 --- a/app/gui/file-dialog-utils.c +++ b/app/gui/file-dialog-utils.c @@ -19,30 +19,17 @@ #include "config.h" -#include - #include -#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 ("", "/File/Open...", FALSE); @@ -52,17 +39,17 @@ file_dialog_show (GtkWidget *filesel, gimp_item_factories_set_sensitive ("", "/File/Save as...", FALSE); gimp_item_factories_set_sensitive ("", "/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 ("", "/File/Open...", TRUE); diff --git a/app/gui/file-dialog-utils.h b/app/gui/file-dialog-utils.h index 13b9f4452c..e405c68c7e 100644 --- a/app/gui/file-dialog-utils.h +++ b/app/gui/file-dialog-utils.h @@ -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__ */