[gimp] app: fixing the soft-proof profile chooser.



commit 7f1dd80ab2cf47a134aaf81125070f2d018c6d09
Author: Jehan <jehan girinstud io>
Date:   Thu Aug 18 16:42:39 2022 +0200

    app: fixing the soft-proof profile chooser.
    
    The GimpColorProfileComboBox widget requires the profile chooser dialog
    to be explicitly constructed. It doesn't create it by itself.
    
    I guess I hadn't tested clicking this "Select color profile from diskā€¦"
    combo item during review. I only selected visible profiles in the list!

 app/display/gimpstatusbar.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/app/display/gimpstatusbar.c b/app/display/gimpstatusbar.c
index ac354b18f9..170b899cd7 100644
--- a/app/display/gimpstatusbar.c
+++ b/app/display/gimpstatusbar.c
@@ -240,6 +240,7 @@ gimp_statusbar_init (GimpStatusbar *statusbar)
   GtkWidget     *label;
   GtkWidget     *grid;
   GtkWidget     *separator;
+  GtkWidget     *profile_chooser;
   GimpUnitStore *store;
   gchar         *text;
   GFile         *file;
@@ -515,9 +516,10 @@ gimp_statusbar_init (GimpStatusbar *statusbar)
   g_object_unref (file);
   gimp_color_profile_store_add_file (GIMP_COLOR_PROFILE_STORE (combo_store),
                                      NULL, NULL);
-  statusbar->profile_combo = g_object_new (GIMP_TYPE_COLOR_PROFILE_COMBO_BOX,
-                            "model", combo_store,
-                            NULL);
+  profile_chooser = gimp_color_profile_chooser_dialog_new (_("Soft-Proofing Profile"), NULL,
+                                                           GTK_FILE_CHOOSER_ACTION_OPEN);
+  statusbar->profile_combo = gimp_color_profile_combo_box_new_with_model (profile_chooser,
+                                                                          GTK_TREE_MODEL (combo_store));
 
   gimp_color_profile_combo_box_set_active_file (GIMP_COLOR_PROFILE_COMBO_BOX (statusbar->profile_combo),
                                                 NULL, NULL);


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