[gimp] plug-ins: move variables to local scope
- From: Sven Neumann <neo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: move variables to local scope
- Date: Fri, 28 May 2010 20:30:26 +0000 (UTC)
commit 0d66ff0a310643776e2183027985e7fff347d76a
Author: Sven Neumann <sven gimp org>
Date: Fri May 28 22:31:15 2010 +0200
plug-ins: move variables to local scope
plug-ins/common/file-csource.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/file-csource.c b/plug-ins/common/file-csource.c
index 95be08c..aade831 100644
--- a/plug-ins/common/file-csource.c
+++ b/plug-ins/common/file-csource.c
@@ -686,15 +686,14 @@ rgb565_toggle_button_update (GtkWidget *toggle,
gtk_widget_set_sensitive (widget, ! active);
}
-static GtkWidget *prefixed_name;
-static GtkWidget *centry;
-
static gboolean
run_save_dialog (Config *config)
{
GtkWidget *dialog;
GtkWidget *vbox;
GtkWidget *table;
+ GtkWidget *prefixed_name;
+ GtkWidget *centry;
GtkWidget *toggle;
GtkWidget *rle_toggle;
GtkWidget *alpha_toggle;
@@ -844,6 +843,7 @@ run_save_dialog (Config *config)
if (!config->prefixed_name || !config->prefixed_name[0])
config->prefixed_name = "tmp";
+
if (config->comment && !config->comment[0])
config->comment = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]