[gimp/gimp-2-10] app: move OpenCL settings into the Playground.



commit ebb5c3c0d21cb56f336d9a7e232abd09fe939ca2
Author: Jehan <jehan girinstud io>
Date:   Fri Jul 17 12:01:17 2020 +0200

    app: move OpenCL settings into the Playground.
    
    After discussions on IRC, it was decided that our current level of
    support of OpenCL was not good enough. As a normal settings, people just
    see it as a normal acceleration checkbox, even despite the warning text
    and emoticone saying the opposite (i.e. it may even slow things down in
    some cases).
    Basically this feature needs more love to be back into mainstream
    Preferences.
    
    (cherry picked from commit 0f806d0e9cf2b3295df3feca68b01bdd4bdce821)

 app/dialogs/preferences-dialog.c | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)
---
diff --git a/app/dialogs/preferences-dialog.c b/app/dialogs/preferences-dialog.c
index 9b8d80f706..b9edaf1ff1 100644
--- a/app/dialogs/preferences-dialog.c
+++ b/app/dialogs/preferences-dialog.c
@@ -1201,20 +1201,6 @@ prefs_dialog_new (Gimp       *gimp,
                          GTK_TABLE (table), 5, size_group);
 #endif /* ENABLE_MP */
 
-  /*  Hardware Acceleration  */
-  vbox2 = prefs_frame_new (_("Hardware Acceleration"), GTK_CONTAINER (vbox),
-                           FALSE);
-
-  prefs_check_button_add (object, "use-opencl",
-                          _("Use O_penCL"),
-                          GTK_BOX (vbox2));
-
-  hbox = prefs_hint_box_new (GIMP_ICON_DIALOG_WARNING,
-                             _("OpenCL drivers and support are experimental, "
-                               "expect slowdowns and possible crashes "
-                               "(please report)."));
-  gtk_box_pack_start (GTK_BOX (vbox2), hbox, FALSE, FALSE, 0);
-
   /*  Internet access  */
 #ifdef CHECK_UPDATE
   vbox2 = prefs_frame_new (_("Network access"), GTK_CONTAINER (vbox),
@@ -1641,8 +1627,23 @@ prefs_dialog_new (Gimp       *gimp,
       gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
       gtk_widget_show (hbox);
 
+      /*  Hardware Acceleration  */
+      vbox2 = prefs_frame_new (_("Hardware Acceleration"), GTK_CONTAINER (vbox),
+                               FALSE);
+
+      hbox = prefs_hint_box_new (GIMP_ICON_DIALOG_WARNING,
+                                 _("OpenCL drivers and support are experimental, "
+                                   "expect slowdowns and possible crashes "
+                                   "(please report)."));
+      gtk_box_pack_start (GTK_BOX (vbox2), hbox, FALSE, FALSE, 0);
+
+      prefs_check_button_add (object, "use-opencl",
+                              _("Use O_penCL"),
+                              GTK_BOX (vbox2));
+
+      /*  Very unstable tools  */
       vbox2 = prefs_frame_new (_("Insane Options"),
-                               GTK_CONTAINER (vbox), TRUE);
+                               GTK_CONTAINER (vbox), FALSE);
 
       button = prefs_check_button_add (object, "playground-npd-tool",
                                        _("_N-Point Deformation tool"),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]