[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 03/05: Switch to regular GtkTreeView.
noreply at xfce.org
noreply at xfce.org
Tue Jan 7 17:52:03 CET 2020
This is an automated email from the git hooks/post-receive script.
g o t t c o d e 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-whiskermenu-plugin.
commit df17d3b6f11c01d454a8d196df7bf4e7a3e67d14
Author: Graeme Gott <graeme at gottcode.org>
Date: Tue Jan 7 07:34:10 2020 -0500
Switch to regular GtkTreeView.
---
panel-plugin/launcher-tree-view.cpp | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/panel-plugin/launcher-tree-view.cpp b/panel-plugin/launcher-tree-view.cpp
index 347302f..805028c 100644
--- a/panel-plugin/launcher-tree-view.cpp
+++ b/panel-plugin/launcher-tree-view.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013, 2016, 2018, 2019 Graeme Gott <graeme at gottcode.org>
+ * Copyright (C) 2013, 2016, 2018, 2019, 2020 Graeme Gott <graeme at gottcode.org>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -42,7 +42,8 @@ LauncherTreeView::LauncherTreeView() :
m_row_activated(false)
{
// Create the view
- m_view = GTK_TREE_VIEW(exo_tree_view_new());
+ m_view = GTK_TREE_VIEW(gtk_tree_view_new());
+ gtk_tree_view_set_activate_on_single_click(m_view, true);
gtk_tree_view_set_headers_visible(m_view, false);
gtk_tree_view_set_enable_tree_lines(m_view, false);
gtk_tree_view_set_hover_selection(m_view, true);
@@ -53,9 +54,6 @@ LauncherTreeView::LauncherTreeView() :
g_signal_connect_slot(m_view, "key-press-event", &LauncherTreeView::on_key_press_event, this);
g_signal_connect_slot(m_view, "key-release-event", &LauncherTreeView::on_key_release_event, this);
- // Use single clicks to activate items
- exo_tree_view_set_single_click(EXO_TREE_VIEW(m_view), true);
-
// Only allow up to one selected item
GtkTreeSelection* selection = gtk_tree_view_get_selection(m_view);
gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list