~ubuntu-branches/ubuntu/vivid/gimp/vivid

« back to all changes in this revision

Viewing changes to app/dialogs/preferences-dialog.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-08 18:50:03 UTC
  • mto: (1.1.26) (0.5.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: package-import@ubuntu.com-20120508185003-tltkvbaysf8d2426
ImportĀ upstreamĀ versionĀ 2.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995-1997 Spencer Kimball and Peter Mattis
3
3
 *
4
 
 * This program is free software; you can redistribute it and/or modify
 
4
 * This program is free software: you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License as published by
6
 
 * the Free Software Foundation; either version 2 of the License, or
 
6
 * the Free Software Foundation; either version 3 of the License, or
7
7
 * (at your option) any later version.
8
8
 *
9
9
 * This program is distributed in the hope that it will be useful,
12
12
 * GNU General Public License for more details.
13
13
 *
14
14
 * You should have received a copy of the GNU General Public License
15
 
 * along with this program; if not, write to the Free Software
16
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
16
 */
18
17
 
19
18
#include "config.h"
39
38
#include "widgets/gimpcontainercombobox.h"
40
39
#include "widgets/gimpcontainerview.h"
41
40
#include "widgets/gimpcontrollerlist.h"
42
 
#include "widgets/gimpdeviceinfo.h"
43
41
#include "widgets/gimpdevices.h"
44
42
#include "widgets/gimpdialogfactory.h"
45
43
#include "widgets/gimpgrideditor.h"
50
48
#include "widgets/gimpprofilechooserdialog.h"
51
49
#include "widgets/gimppropwidgets.h"
52
50
#include "widgets/gimptemplateeditor.h"
 
51
#include "widgets/gimptooleditor.h"
53
52
#include "widgets/gimpwidgets-constructors.h"
54
53
#include "widgets/gimpwidgets-utils.h"
55
54
 
91
90
                                                   const gchar    *message);
92
91
 
93
92
static void   prefs_notebook_page_callback        (GtkNotebook      *notebook,
94
 
                                                   GtkNotebookPage  *page,
 
93
                                                   gpointer          page,
95
94
                                                   guint             page_num,
96
95
                                                   GtkTreeSelection *sel);
97
96
static void   prefs_resolution_source_callback    (GtkWidget  *widget,
100
99
                                                   GtkWidget  *entry);
101
100
static void   prefs_input_devices_dialog          (GtkWidget  *widget,
102
101
                                                   Gimp       *gimp);
103
 
static void   prefs_input_dialog_able_callback    (GtkWidget  *widget,
104
 
                                                   GdkDevice  *device,
105
 
                                                   gpointer    data);
 
102
static void   prefs_keyboard_shortcuts_dialog     (GtkWidget  *widget,
 
103
                                                   Gimp       *gimp);
106
104
static void   prefs_menus_save_callback           (GtkWidget  *widget,
107
105
                                                   Gimp       *gimp);
108
106
static void   prefs_menus_clear_callback          (GtkWidget  *widget,
126
124
/*  private variables  */
127
125
 
128
126
static GtkWidget *prefs_dialog = NULL;
 
127
static GtkWidget *tool_editor  = NULL;
129
128
 
130
129
 
131
130
/*  public function  */
406
405
            g_value_unset (&value);
407
406
          }
408
407
 
 
408
        gimp_tool_editor_revert_changes (GIMP_TOOL_EDITOR (tool_editor));
 
409
 
409
410
        g_object_thaw_notify (G_OBJECT (gimp->edit_config));
410
411
 
411
412
        g_list_free (diff);
412
413
      }
 
414
 
 
415
      tool_editor = NULL;
413
416
    }
414
417
 
415
418
  /*  enable autosaving again  */
442
445
  gdouble  yres;
443
446
  gboolean from_gdk;
444
447
 
445
 
  gimp_toggle_button_sensitive_update (GTK_TOGGLE_BUTTON (widget));
446
 
 
447
448
  from_gdk = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget));
448
449
 
449
450
  if (from_gdk)
488
489
prefs_input_devices_dialog (GtkWidget *widget,
489
490
                            Gimp      *gimp)
490
491
{
491
 
  static GtkWidget *input_dialog = NULL;
492
 
 
493
 
  if (input_dialog)
494
 
    {
495
 
      gtk_window_present (GTK_WINDOW (input_dialog));
496
 
      return;
497
 
    }
498
 
 
499
 
  input_dialog = g_object_new (GTK_TYPE_INPUT_DIALOG,
500
 
                               "title", _("Configure Input Devices"),
501
 
                               NULL);
502
 
 
503
 
  g_object_add_weak_pointer (G_OBJECT (input_dialog),
504
 
                             (gpointer) &input_dialog);
505
 
 
506
 
  gtk_window_set_transient_for (GTK_WINDOW (input_dialog),
507
 
                                GTK_WINDOW (prefs_dialog));
508
 
  gtk_window_set_destroy_with_parent (GTK_WINDOW (input_dialog), TRUE);
509
 
 
510
 
  g_signal_connect_swapped (GTK_INPUT_DIALOG (input_dialog)->save_button,
511
 
                            "clicked",
512
 
                            G_CALLBACK (gimp_devices_save),
513
 
                            gimp);
514
 
 
515
 
  g_signal_connect_swapped (GTK_INPUT_DIALOG (input_dialog)->close_button,
516
 
                            "clicked",
517
 
                            G_CALLBACK (gtk_widget_destroy),
518
 
                            input_dialog);
519
 
 
520
 
  g_signal_connect (input_dialog, "enable-device",
521
 
                    G_CALLBACK (prefs_input_dialog_able_callback),
522
 
                    NULL);
523
 
  g_signal_connect (input_dialog, "disable-device",
524
 
                    G_CALLBACK (prefs_input_dialog_able_callback),
525
 
                    NULL);
526
 
 
527
 
  gtk_widget_show (input_dialog);
528
 
}
529
 
 
530
 
static void
531
 
prefs_input_dialog_able_callback (GtkWidget *widget,
532
 
                                  GdkDevice *device,
533
 
                                  gpointer   data)
534
 
{
535
 
  gimp_device_info_changed_by_device (device);
 
492
  gimp_dialog_factory_dialog_raise (gimp_dialog_factory_get_singleton (),
 
493
                                    gtk_widget_get_screen (widget),
 
494
                                    "gimp-input-devices-dialog", 0);
536
495
}
537
496
 
538
497
static void
539
498
prefs_keyboard_shortcuts_dialog (GtkWidget *widget,
540
499
                                 Gimp      *gimp)
541
500
{
542
 
  gimp_dialog_factory_dialog_raise (gimp_dialog_factory_from_name ("toplevel"),
 
501
  gimp_dialog_factory_dialog_raise (gimp_dialog_factory_get_singleton (),
543
502
                                    gtk_widget_get_screen (widget),
544
503
                                    "gimp-keyboard-shortcuts-dialog", 0);
545
504
}
747
706
 
748
707
  gimp_help_set_help_data (event_box, NULL, help_id);
749
708
 
750
 
  vbox = gtk_vbox_new (FALSE, 12);
 
709
  vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
751
710
  gtk_container_add (GTK_CONTAINER (event_box), vbox);
752
711
  gtk_widget_show (vbox);
753
712
 
840
799
 
841
800
static void
842
801
prefs_notebook_page_callback (GtkNotebook      *notebook,
843
 
                              GtkNotebookPage  *page,
 
802
                              gpointer          page,
844
803
                              guint             page_num,
845
804
                              GtkTreeSelection *sel)
846
805
{
945
904
 
946
905
  frame = gimp_frame_new (label);
947
906
 
948
 
  vbox = gtk_vbox_new (FALSE, 6);
 
907
  vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
949
908
  gtk_container_add (GTK_CONTAINER (frame), vbox);
950
909
  gtk_widget_show (vbox);
951
910
 
1121
1080
  if (!button)
1122
1081
    return NULL;
1123
1082
 
1124
 
  hbox = gtk_hbox_new (FALSE, 6);
 
1083
  hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
1125
1084
  gtk_box_pack_start (vbox, hbox, FALSE, FALSE, 0);
1126
1085
  gtk_widget_show (hbox);
1127
1086
 
1215
1174
  return combo;
1216
1175
}
1217
1176
 
 
1177
#ifdef HAVE_ISO_CODES
 
1178
static GtkWidget *
 
1179
prefs_language_combo_box_add (GObject      *config,
 
1180
                              const gchar  *property_name,
 
1181
                              GtkBox       *vbox)
 
1182
{
 
1183
  GtkWidget *combo = gimp_prop_language_combo_box_new (config, property_name);
 
1184
 
 
1185
  if (combo)
 
1186
    {
 
1187
      gtk_box_pack_start (vbox, combo, FALSE, FALSE, 0);
 
1188
      gtk_widget_show (combo);
 
1189
    }
 
1190
 
 
1191
  return combo;
 
1192
}
 
1193
#endif
 
1194
 
1218
1195
static GtkWidget *
1219
1196
prefs_spin_button_add (GObject      *config,
1220
1197
                       const gchar  *property_name,
1276
1253
 
1277
1254
  vbox = prefs_frame_new (label, parent, FALSE);
1278
1255
 
1279
 
  hbox = gtk_hbox_new (FALSE, 6);
 
1256
  hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
1280
1257
  gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
1281
1258
  gtk_widget_show (hbox);
1282
1259
 
1283
 
  checks_vbox = gtk_vbox_new (FALSE, 2);
 
1260
  checks_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
1284
1261
  gtk_box_pack_start (GTK_BOX (hbox), checks_vbox, TRUE, TRUE, 0);
1285
1262
  gtk_widget_show (checks_vbox);
1286
1263
 
1299
1276
                          _("Show s_tatusbar"),
1300
1277
                          GTK_BOX (checks_vbox));
1301
1278
 
1302
 
  checks_vbox = gtk_vbox_new (FALSE, 2);
 
1279
  checks_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
1303
1280
  gtk_box_pack_start (GTK_BOX (hbox), checks_vbox, TRUE, TRUE, 0);
1304
1281
  gtk_widget_show (checks_vbox);
1305
1282
 
1414
1391
  core_config    = GIMP_CORE_CONFIG (config);
1415
1392
  display_config = GIMP_DISPLAY_CONFIG (config);
1416
1393
 
1417
 
  dialog = gimp_dialog_new (_("Preferences"), "preferences",
 
1394
  dialog = gimp_dialog_new (_("Preferences"), "gimp-preferences",
1418
1395
                            NULL, 0,
1419
1396
                            prefs_help_func,
1420
1397
                            GIMP_HELP_PREFS_DIALOG,
1436
1413
                    dialog);
1437
1414
 
1438
1415
  /* The main hbox */
1439
 
  hbox = gtk_hbox_new (FALSE, 12);
 
1416
  hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
1440
1417
  gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
1441
 
  gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), hbox);
 
1418
  gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
 
1419
                      hbox, TRUE, TRUE, 0);
1442
1420
  gtk_widget_show (hbox);
1443
1421
 
1444
1422
  /* The categories tree */
1472
1450
 
1473
1451
  gtk_container_add (GTK_CONTAINER (frame), tv);
1474
1452
 
1475
 
  vbox = gtk_vbox_new (FALSE, 12);
 
1453
  vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
1476
1454
  gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
1477
1455
  gtk_widget_show (vbox);
1478
1456
 
1481
1459
  gtk_box_pack_start (GTK_BOX (vbox), ebox, FALSE, TRUE, 0);
1482
1460
  gtk_widget_show (ebox);
1483
1461
 
1484
 
  hbox = gtk_hbox_new (FALSE, 6);
 
1462
  hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
1485
1463
  gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
1486
1464
  gtk_container_add (GTK_CONTAINER (ebox), hbox);
1487
1465
  gtk_widget_show (hbox);
1613
1591
                                     &top_iter,
1614
1592
                                     page_index++);
1615
1593
 
 
1594
  /*  Language  */
 
1595
 
 
1596
  /*  Only add the language entry if the iso-codes package is available.  */
 
1597
#ifdef HAVE_ISO_CODES
 
1598
  vbox2 = prefs_frame_new (_("Language"), GTK_CONTAINER (vbox), FALSE);
 
1599
 
 
1600
  prefs_language_combo_box_add (object, "language", GTK_BOX (vbox2));
 
1601
#endif
 
1602
 
1616
1603
  /*  Previews  */
1617
1604
  vbox2 = prefs_frame_new (_("Previews"), GTK_CONTAINER (vbox), FALSE);
1618
1605
 
1633
1620
  vbox2 = prefs_frame_new (_("Keyboard Shortcuts"),
1634
1621
                           GTK_CONTAINER (vbox), FALSE);
1635
1622
 
1636
 
  prefs_check_button_add (object, "menu-mnemonics",
1637
 
                          _("Show menu _mnemonics (access keys)"),
1638
 
                          GTK_BOX (vbox2));
1639
1623
  prefs_check_button_add (object, "can-change-accels",
1640
1624
                          _("_Use dynamic keyboard shortcuts"),
1641
1625
                          GTK_BOX (vbox2));
1766
1750
                      gimp);
1767
1751
  }
1768
1752
 
1769
 
  hbox = gtk_hbox_new (FALSE, 6);
 
1753
  hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
1770
1754
  gtk_box_pack_start (GTK_BOX (vbox2), hbox, FALSE, FALSE, 0);
1771
1755
  gtk_widget_show (hbox);
1772
1756
 
1831
1815
        text = _("The user manual is not installed locally.");
1832
1816
      }
1833
1817
 
1834
 
    hbox = gtk_hbox_new (FALSE, 6);
 
1818
    hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
1835
1819
    gtk_table_attach_defaults (GTK_TABLE (table), hbox, 1, 2, 1, 2);
1836
1820
    gtk_widget_show (hbox);
1837
1821
 
1858
1842
                            _("H_elp browser to use:"),
1859
1843
                            GTK_TABLE (table), 0, size_group);
1860
1844
 
1861
 
  /*  Web Browser  (unused on win32)  */
1862
 
#ifndef G_OS_WIN32
1863
 
  vbox2 = prefs_frame_new (_("Web Browser"), GTK_CONTAINER (vbox), FALSE);
1864
 
  table = prefs_table_new (1, GTK_CONTAINER (vbox2));
1865
 
 
1866
 
  prefs_widget_add_aligned (gimp_prop_entry_new (object, "web-browser", 0),
1867
 
                            _("_Web browser to use:"),
1868
 
                            GTK_TABLE (table), 0, FALSE, size_group);
1869
 
#endif
1870
 
 
1871
1845
  g_object_unref (size_group);
1872
1846
  size_group = NULL;
1873
1847
 
1939
1913
  prefs_check_button_add_with_icon (object, "global-brush",
1940
1914
                                    _("_Brush"),    GIMP_STOCK_BRUSH,
1941
1915
                                    GTK_BOX (vbox2), size_group);
 
1916
  prefs_check_button_add_with_icon (object, "global-dynamics",
 
1917
                                    _("_Dynamics"), GIMP_STOCK_DYNAMICS,
 
1918
                                    GTK_BOX (vbox2), size_group);
1942
1919
  prefs_check_button_add_with_icon (object, "global-pattern",
1943
1920
                                    _("_Pattern"),  GIMP_STOCK_PATTERN,
1944
1921
                                    GTK_BOX (vbox2), size_group);
1946
1923
                                    _("_Gradient"), GIMP_STOCK_GRADIENT,
1947
1924
                                    GTK_BOX (vbox2), size_group);
1948
1925
 
 
1926
  /*  Move Tool */
1949
1927
  vbox2 = prefs_frame_new (_("Move Tool"),
1950
1928
                           GTK_CONTAINER (vbox), FALSE);
1951
1929
 
1994
1972
  g_object_unref (size_group);
1995
1973
  size_group = NULL;
1996
1974
 
 
1975
  /* Tool Editor */
 
1976
  vbox2 = prefs_frame_new (_("Tools configuration"),
 
1977
                           GTK_CONTAINER (vbox), TRUE);
 
1978
  tool_editor = gimp_tool_editor_new (gimp->tool_info_list, gimp->user_context,
 
1979
                                      gimp_tools_get_default_order (gimp),
 
1980
                                      GIMP_VIEW_SIZE_SMALL, 1);
 
1981
 
 
1982
  gtk_box_pack_start (GTK_BOX (vbox2), tool_editor, TRUE, TRUE, 0);
 
1983
  gtk_widget_show (tool_editor);
 
1984
 
1997
1985
 
1998
1986
  /***********************/
1999
1987
  /*  Default New Image  */
2033
2021
  gtk_box_pack_start (GTK_BOX (vbox), editor, FALSE, FALSE, 0);
2034
2022
  gtk_widget_show (editor);
2035
2023
 
 
2024
  /*  Quick Mask Color */
 
2025
  vbox2 = prefs_frame_new (_("Quick Mask"), GTK_CONTAINER (vbox), FALSE);
 
2026
  table = prefs_table_new (1, GTK_CONTAINER (vbox2));
 
2027
  button = gimp_prop_color_button_new (object, "quick-mask-color",
 
2028
                                       _("Set the default Quick Mask color"),
 
2029
                                       COLOR_BUTTON_WIDTH,
 
2030
                                       COLOR_BUTTON_HEIGHT,
 
2031
                                       GIMP_COLOR_AREA_SMALL_CHECKS);
 
2032
  gimp_color_panel_set_context (GIMP_COLOR_PANEL (button),
 
2033
                                gimp_get_user_context (gimp));
 
2034
  prefs_widget_add_aligned (button, _("Quick Mask color:"),
 
2035
                            GTK_TABLE (table), 0, TRUE, NULL);
 
2036
 
2036
2037
 
2037
2038
 
2038
2039
  /******************/
2052
2053
  /*  Grid  */
2053
2054
  editor = gimp_grid_editor_new (core_config->default_grid,
2054
2055
                                 gimp_get_user_context (gimp),
2055
 
                                 core_config->default_image->xresolution,
2056
 
                                 core_config->default_image->yresolution);
2057
 
 
2058
 
  gtk_container_add (GTK_CONTAINER (vbox), editor);
 
2056
                                 gimp_template_get_resolution_x (core_config->default_image),
 
2057
                                 gimp_template_get_resolution_y (core_config->default_image));
 
2058
  gtk_box_pack_start (GTK_BOX (vbox), editor, TRUE, TRUE, 0);
2059
2059
  gtk_widget_show (editor);
2060
2060
 
2061
2061
 
2128
2128
                          _("Show pointer for paint _tools"),
2129
2129
                          GTK_BOX (vbox2));
2130
2130
 
2131
 
  table = prefs_table_new (2, GTK_CONTAINER (vbox2));
 
2131
  table = prefs_table_new (3, GTK_CONTAINER (vbox2));
2132
2132
 
2133
2133
  prefs_enum_combo_box_add (object, "cursor-mode", 0, 0,
2134
2134
                            _("Pointer _mode:"),
2136
2136
  prefs_enum_combo_box_add (object, "cursor-format", 0, 0,
2137
2137
                            _("Pointer re_ndering:"),
2138
2138
                            GTK_TABLE (table), 1, size_group);
 
2139
  prefs_enum_combo_box_add (object, "cursor-handedness", 0, 0,
 
2140
                            _("Pointer _handedness:"),
 
2141
                            GTK_TABLE (table), 2, NULL);
2139
2142
 
2140
2143
  g_object_unref (size_group);
2141
2144
  size_group = NULL;
2346
2349
  gimp_size_entry_attach_label (GIMP_SIZE_ENTRY (entry),
2347
2350
                                _("ppi"), 1, 4, 0.0);
2348
2351
 
2349
 
  hbox = gtk_hbox_new (FALSE, 0);
 
2352
  hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
2350
2353
 
2351
2354
  gtk_box_pack_start (GTK_BOX (hbox), entry, FALSE, FALSE, 24);
2352
2355
  gtk_widget_show (entry);
2373
2376
  gtk_widget_show (button);
2374
2377
 
2375
2378
  g_object_set_data (G_OBJECT (button), "monitor_resolution_sizeentry", entry);
2376
 
  g_object_set_data (G_OBJECT (button), "set_sensitive", label);
2377
 
  g_object_set_data (G_OBJECT (button), "inverse_sensitive", entry);
2378
2379
 
2379
2380
  g_signal_connect (button, "toggled",
2380
2381
                    G_CALLBACK (prefs_resolution_source_callback),
2391
2392
  if (! display_config->monitor_res_from_gdk)
2392
2393
    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
2393
2394
 
2394
 
  hbox = gtk_hbox_new (FALSE, 0);
 
2395
  hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
2395
2396
  gtk_box_pack_start (GTK_BOX (vbox2), hbox, FALSE, FALSE, 0);
2396
2397
  gtk_widget_show (hbox);
2397
2398
 
2403
2404
  gtk_widget_set_sensitive (calibrate_button,
2404
2405
                            ! display_config->monitor_res_from_gdk);
2405
2406
 
2406
 
  g_object_set_data (G_OBJECT (entry), "inverse_sensitive", calibrate_button);
 
2407
  g_object_bind_property (button, "active",
 
2408
                          entry,  "sensitive",
 
2409
                          G_BINDING_SYNC_CREATE);
 
2410
  g_object_bind_property (button,           "active",
 
2411
                          calibrate_button, "sensitive",
 
2412
                          G_BINDING_SYNC_CREATE);
2407
2413
 
2408
2414
  g_signal_connect (calibrate_button, "clicked",
2409
2415
                    G_CALLBACK (prefs_resolution_calibrate_callback),
2512
2518
 
2513
2519
    g_object_unref (store);
2514
2520
 
2515
 
    hbox = gtk_hbox_new (FALSE, 6);
 
2521
    hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
2516
2522
    gtk_table_attach_defaults (GTK_TABLE (table), hbox, 1, 2, row, row + 1);
2517
2523
    gtk_widget_show (hbox);
2518
2524
    row++;
2626
2632
  vbox2 = prefs_frame_new (_("Window Manager Hints"),
2627
2633
                           GTK_CONTAINER (vbox), FALSE);
2628
2634
 
2629
 
  table = prefs_table_new (2, GTK_CONTAINER (vbox2));
2630
 
 
2631
 
  prefs_enum_combo_box_add (object, "toolbox-window-hint", 0, 0,
2632
 
                            _("Hint for the _toolbox:"),
2633
 
                            GTK_TABLE (table), 0, size_group);
 
2635
  table = prefs_table_new (1, GTK_CONTAINER (vbox2));
2634
2636
 
2635
2637
  prefs_enum_combo_box_add (object, "dock-window-hint", 0, 0,
2636
 
                            _("Hint for other _docks:"),
 
2638
                            _("Hint for _docks and toolbox:"),
2637
2639
                            GTK_TABLE (table), 1, size_group);
2638
2640
 
2639
 
#ifdef GIMP_UNSTABLE
2640
 
  prefs_check_button_add (object, "transient-docks",
2641
 
                          _("Toolbox and other docks are transient "
2642
 
                            "to the active image window"),
2643
 
                          GTK_BOX (vbox2));
2644
 
#endif
2645
 
 
2646
2641
  vbox2 = prefs_frame_new (_("Focus"),
2647
2642
                           GTK_CONTAINER (vbox), FALSE);
2648
2643
 
2745
2740
        GIMP_HELP_PREFS_FOLDERS_BRUSHES,
2746
2741
        N_("Select Brush Folders"),
2747
2742
        "brush-path", "brush-path-writable" },
 
2743
      { N_("Dynamics"), N_("Dynamics Folders"), "folders-dynamics",
 
2744
        GIMP_HELP_PREFS_FOLDERS_DYNAMICS,
 
2745
        N_("Select Dynamics Folders"),
 
2746
        "dynamics-path", "dynamics-path-writable" },
2748
2747
      { N_("Patterns"), N_("Pattern Folders"), "folders-patterns",
2749
2748
        GIMP_HELP_PREFS_FOLDERS_PATTERNS,
2750
2749
        N_("Select Pattern Folders"),
2761
2760
        GIMP_HELP_PREFS_FOLDERS_FONTS,
2762
2761
        N_("Select Font Folders"),
2763
2762
        "font-path", NULL },
 
2763
      { N_("Tool Presets"), N_("Tool Preset Folders"), "folders-tool-presets",
 
2764
        GIMP_HELP_PREFS_FOLDERS_TOOL_PRESETS,
 
2765
        N_("Select Tool Preset Folders"),
 
2766
        "tool-preset-path", "tool-preset-path-writable" },
2764
2767
      { N_("Plug-Ins"), N_("Plug-In Folders"), "folders-plug-ins",
2765
2768
        GIMP_HELP_PREFS_FOLDERS_PLUG_INS,
2766
2769
        N_("Select Plug-In Folders"),
2806
2809
                                            paths[i].path_property_name,
2807
2810
                                            paths[i].writable_property_name,
2808
2811
                                            gettext (paths[i].fs_label));
2809
 
        gtk_container_add (GTK_CONTAINER (vbox), editor);
 
2812
        gtk_box_pack_start (GTK_BOX (vbox), editor, TRUE, TRUE, 0);
2810
2813
        gtk_widget_show (editor);
2811
2814
      }
2812
2815
  }