[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 123/473: Fix pango errors.
noreply at xfce.org
noreply at xfce.org
Mon Feb 16 23:54:53 CET 2015
This is an automated email from the git hooks/post-receive script.
gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.
commit 0a57ed64289edb6cb9633d03e627f19f1aa4c0c2
Author: Graeme Gott <graeme at gottcode.org>
Date: Thu Jul 18 12:18:35 2013 -0400
Fix pango errors.
---
src/launcher_view.cpp | 8 ++++++++
src/launcher_view.hpp | 1 +
src/page.cpp | 2 +-
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/launcher_view.cpp b/src/launcher_view.cpp
index 86610ae..53cdfd3 100644
--- a/src/launcher_view.cpp
+++ b/src/launcher_view.cpp
@@ -102,6 +102,14 @@ void LauncherView::scroll_to_path(GtkTreePath* path)
void LauncherView::select_path(GtkTreePath* path)
{
+ GtkTreeSelection* selection = gtk_tree_view_get_selection(m_view);
+ gtk_tree_selection_select_path(selection, path);
+}
+
+//-----------------------------------------------------------------------------
+
+void LauncherView::set_cursor(GtkTreePath* path)
+{
gtk_tree_view_set_cursor(m_view, path, NULL, false);
}
diff --git a/src/launcher_view.hpp b/src/launcher_view.hpp
index ff3064a..587dab0 100644
--- a/src/launcher_view.hpp
+++ b/src/launcher_view.hpp
@@ -43,6 +43,7 @@ public:
void scroll_to_path(GtkTreePath* path);
void select_path(GtkTreePath* path);
+ void set_cursor(GtkTreePath* path);
void set_reorderable(bool reorderable);
void set_selection_mode(GtkSelectionMode mode);
diff --git a/src/page.cpp b/src/page.cpp
index 25400b8..fa3025e 100644
--- a/src/page.cpp
+++ b/src/page.cpp
@@ -75,7 +75,7 @@ void Page::reset_selection()
{
GtkTreePath* path = gtk_tree_model_get_path(model, &iter);
get_view()->scroll_to_path(path);
- get_view()->select_path(path);
+ get_view()->set_cursor(path);
get_view()->unselect_all();
gtk_tree_path_free(path);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list