[Xfce4-commits] [panel-plugins/xfce4-clipman-plugin] 15/37: Enable reverse-order option
noreply at xfce.org
noreply at xfce.org
Mon Mar 23 23:30:10 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 cf9ff9ab49ea27a9650f181f2d6788e03665ba84
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Fri Mar 20 17:26:36 2020 +0100
Enable reverse-order option
---
panel-plugin/xfce4-clipman-history.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/panel-plugin/xfce4-clipman-history.c b/panel-plugin/xfce4-clipman-history.c
index 84b419e..9f23470 100644
--- a/panel-plugin/xfce4-clipman-history.c
+++ b/panel-plugin/xfce4-clipman-history.c
@@ -148,6 +148,7 @@ clipman_history_treeview_init (MyPlugin *plugin)
GtkListStore *liststore;
GtkTreeIter iter;
GtkWidget *entry, *scroll, *treeview, *label, *box;
+ gboolean reverse_order = FALSE;
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
@@ -209,7 +210,11 @@ clipman_history_treeview_init (MyPlugin *plugin)
plugin->history = clipman_history_get ();
list = clipman_history_get_list (plugin->history);
- //list = g_slist_reverse (list);
+
+ g_object_get (G_OBJECT (plugin->menu), "reverse-order", &reverse_order, NULL);
+ if (reverse_order)
+ list = g_slist_reverse (list);
+
if (list == NULL)
{
gtk_list_store_insert_with_values (liststore, &iter, 0,
@@ -382,6 +387,9 @@ main (gint argc, gchar *argv[])
plugin->menu = clipman_menu_new ();
xfconf_g_property_bind (plugin->channel, "/tweaks/paste-on-activate",
G_TYPE_UINT, plugin->menu, "paste-on-activate");
+ xfconf_g_property_bind (plugin->channel, "/tweaks/reverse-menu-order",
+ G_TYPE_BOOLEAN, plugin->menu, "reverse-order");
+
plugin_load (plugin);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list