[gimp] app: move variable to local scope in GimpTextOptions
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: move variable to local scope in GimpTextOptions
- Date: Thu, 1 Sep 2011 22:16:21 +0000 (UTC)
commit f6d106705e79f3ecc2409f5a14ec5b0493985a2a
Author: Michael Natterer <mitch gimp org>
Date: Fri Sep 2 00:12:10 2011 +0200
app: move variable to local scope in GimpTextOptions
app/tools/gimptextoptions.c | 29 ++++++++++++++++-------------
1 files changed, 16 insertions(+), 13 deletions(-)
---
diff --git a/app/tools/gimptextoptions.c b/app/tools/gimptextoptions.c
index cc06de7..9aa6ccd 100644
--- a/app/tools/gimptextoptions.c
+++ b/app/tools/gimptextoptions.c
@@ -501,7 +501,6 @@ gimp_text_options_gui (GimpToolOptions *tool_options)
GtkWidget *button;
GtkWidget *entry;
GtkWidget *box;
- GtkWidget *label;
GtkWidget *spinbutton;
GtkWidget *combo;
GtkSizeGroup *size_group;
@@ -596,21 +595,25 @@ gimp_text_options_gui (GimpToolOptions *tool_options)
/* Only add the language entry if the iso-codes package is available. */
#ifdef HAVE_ISO_CODES
- vbox = gtk_vbox_new (FALSE, 2);
- gtk_box_pack_start (GTK_BOX (main_vbox), vbox, FALSE, FALSE, 0);
- gtk_widget_show (vbox);
+ {
+ GtkWidget *label;
- hbox = gtk_hbox_new (FALSE, 0);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
- gtk_widget_show (hbox);
+ vbox = gtk_vbox_new (FALSE, 2);
+ gtk_box_pack_start (GTK_BOX (main_vbox), vbox, FALSE, FALSE, 0);
+ gtk_widget_show (vbox);
+
+ hbox = gtk_hbox_new (FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_widget_show (hbox);
- label = gtk_label_new (_("Language:"));
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
- gtk_widget_show (label);
+ label = gtk_label_new (_("Language:"));
+ gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
+ gtk_widget_show (label);
- entry = gimp_prop_language_entry_new (config, "language");
- gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE, 0);
- gtk_widget_show (entry);
+ entry = gimp_prop_language_entry_new (config, "language");
+ gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE, 0);
+ gtk_widget_show (entry);
+ }
#endif
return main_vbox;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]