[Xfce4-commits] [panel-plugins/xfce4-clipman-plugin] 24/37: Activate paste on activate

noreply at xfce.org noreply at xfce.org
Mon Mar 23 23:30:19 CET 2020


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 panel-plugins/xfce4-clipman-plugin.

commit f78e499d007d993374051ecbb1684febd17b05cd
Author: Florian Schüller <florian.schueller at gmail.com>
Date:   Sat Mar 21 23:18:50 2020 +0100

    Activate paste on activate
---
 panel-plugin/xfce4-clipman-history.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/panel-plugin/xfce4-clipman-history.c b/panel-plugin/xfce4-clipman-history.c
index 8b33030..9b0f3d9 100644
--- a/panel-plugin/xfce4-clipman-history.c
+++ b/panel-plugin/xfce4-clipman-history.c
@@ -277,14 +277,9 @@ static void
 clipman_history_dialog_finalize (MyPlugin  *plugin,
                                  GtkWidget *window)
 {
-//  guint paste_on_activate;
-//
-//  g_object_get (G_OBJECT (plugin->menu), "paste-on-activate", &paste_on_activate, NULL);
-//  if (paste_on_activate > 0)
-//    {
-//      gtk_widget_hide (window);
-//      cb_paste_on_activate (paste_on_activate);
-//    }
+  guint paste_on_activate;
+
+  g_object_get (G_OBJECT (plugin->menu), "paste-on-activate", &paste_on_activate, NULL);
 
   plugin_save (plugin);
 
@@ -292,6 +287,12 @@ clipman_history_dialog_finalize (MyPlugin  *plugin,
   g_object_unref (plugin->channel);
   g_object_unref (plugin->history);
   gtk_widget_destroy (plugin->dialog);
+
+  if (paste_on_activate > 0)
+  {
+    cb_paste_on_activate (paste_on_activate);
+  }
+
   g_slice_free (MyPlugin, plugin);
   xfconf_shutdown ();
 }

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


More information about the Xfce4-commits mailing list