[Xfce4-commits] [xfce/xfce4-settings] 37/57: color: Ensure you can double-click to add profiles

noreply at xfce.org noreply at xfce.org
Thu Mar 21 22:14:25 CET 2019


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-settings.

commit 7a12e76cb4e3cf5b961f16cdd2add006c2990686
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Fri Feb 15 00:34:38 2019 +0100

    color: Ensure you can double-click to add profiles
---
 dialogs/color-settings/main.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/dialogs/color-settings/main.c b/dialogs/color-settings/main.c
index 941ceba..cf5a6af 100644
--- a/dialogs/color-settings/main.c
+++ b/dialogs/color-settings/main.c
@@ -483,6 +483,23 @@ color_settings_button_assign_ok_cb (GtkWidget *widget, ColorSettings *settings)
 
 
 static void
+color_settings_profiles_row_activated_cb (GtkTreeView *tree_view,
+                                          GtkTreePath *path,
+                                          GtkTreeViewColumn *column,
+                                          ColorSettings *settings)
+{
+    GtkTreeIter iter;
+    gboolean ret;
+
+    ret = gtk_tree_model_get_iter (gtk_tree_view_get_model (tree_view), &iter, path);
+    if (!ret)
+        return;
+    color_settings_button_assign_ok_cb (NULL, settings);
+}
+
+
+
+static void
 color_settings_profile_add_cb (GtkButton *button, ColorSettings *settings)
 {
     g_autoptr(GPtrArray) profiles = NULL;
@@ -1131,9 +1148,9 @@ color_settings_dialog_init (GtkBuilder *builder)
     g_signal_connect (selection, "changed",
                       G_CALLBACK (color_settings_profiles_treeview_clicked_cb),
                       settings);
-/*    g_signal_connect (GTK_TREE_VIEW (settings->treeview_assign), "row-activated",
+    g_signal_connect (GTK_TREE_VIEW (settings->treeview_assign), "row-activated",
                       G_CALLBACK (color_settings_profiles_row_activated_cb),
-                      settings); */
+                      settings);
     settings->button_assign_import = gtk_builder_get_object (builder, "assign-import");
     g_signal_connect (settings->button_assign_import, "clicked", G_CALLBACK (color_settings_profile_import_cb), settings);
     settings->button_assign_ok = gtk_builder_get_object (builder, "assign-ok");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list