[gimp] app: use prefs_file_chooser_button_add() for the temp and swap paths
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use prefs_file_chooser_button_add() for the temp and swap paths
- Date: Sun, 25 Sep 2016 22:23:54 +0000 (UTC)
commit 28c0e752b2f70aeced34bc2a94c89851db1ee4e5
Author: Michael Natterer <mitch gimp org>
Date: Mon Sep 26 00:23:08 2016 +0200
app: use prefs_file_chooser_button_add() for the temp and swap paths
app/dialogs/preferences-dialog.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/app/dialogs/preferences-dialog.c b/app/dialogs/preferences-dialog.c
index 332512e..0017d94 100644
--- a/app/dialogs/preferences-dialog.c
+++ b/app/dialogs/preferences-dialog.c
@@ -2616,7 +2616,7 @@ prefs_dialog_new (Gimp *gimp,
{
const gchar *property_name;
const gchar *label;
- const gchar *fs_label;
+ const gchar *dialog_title;
}
dirs[] =
{
@@ -2636,13 +2636,10 @@ prefs_dialog_new (Gimp *gimp,
for (i = 0; i < G_N_ELEMENTS (dirs); i++)
{
- button = gimp_prop_file_chooser_button_new (object,
- dirs[i].property_name,
- gettext (dirs[i].fs_label),
- GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
- gimp_table_attach_aligned (GTK_TABLE (table), 0, i,
- gettext (dirs[i].label), 0.0, 0.5,
- button, 1, FALSE);
+ prefs_file_chooser_button_add (object, dirs[i].property_name,
+ gettext (dirs[i].label),
+ gettext (dirs[i].dialog_title),
+ GTK_TABLE (table), i, NULL);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]