[devhelp/wip/swilmet/various-code-improvements: 11/12] sidebar: improve some function names
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/wip/swilmet/various-code-improvements: 11/12] sidebar: improve some function names
- Date: Sat, 10 Oct 2015 13:09:40 +0000 (UTC)
commit 9f2c7e1dd4c7a3cc8f78f8bc2a3693776381bc79
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Oct 10 11:21:22 2015 +0200
sidebar: improve some function names
To make it clearer that the functions are for the hitlist, since there
is another GtkTreeView for the book tree.
https://bugzilla.gnome.org/show_bug.cgi?id=756341
src/dh-sidebar.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/dh-sidebar.c b/src/dh-sidebar.c
index abd8b82..79d0c80 100644
--- a/src/dh-sidebar.c
+++ b/src/dh-sidebar.c
@@ -172,8 +172,8 @@ sidebar_completion_populate (DhSidebar *sidebar)
/******************************************************************************/
static void
-sidebar_selection_changed_cb (GtkTreeSelection *selection,
- DhSidebar *sidebar)
+sidebar_hitlist_selection_changed_cb (GtkTreeSelection *selection,
+ DhSidebar *sidebar)
{
DhSidebarPrivate *priv = dh_sidebar_get_instance_private (sidebar);
GtkTreeIter iter;
@@ -365,18 +365,18 @@ dh_sidebar_set_search_focus (DhSidebar *sidebar)
/******************************************************************************/
static void
-search_cell_data_func (GtkTreeViewColumn *tree_column,
- GtkCellRenderer *cell,
- GtkTreeModel *tree_model,
- GtkTreeIter *iter,
- gpointer data)
+hitlist_cell_data_func (GtkTreeViewColumn *tree_column,
+ GtkCellRenderer *cell,
+ GtkTreeModel *hitlist_model,
+ GtkTreeIter *iter,
+ gpointer data)
{
DhLink *link;
PangoStyle style;
PangoWeight weight;
gboolean current_book_flag;
- gtk_tree_model_get (tree_model, iter,
+ gtk_tree_model_get (hitlist_model, iter,
DH_KEYWORD_MODEL_COL_LINK, &link,
DH_KEYWORD_MODEL_COL_CURRENT_BOOK_FLAG, ¤t_book_flag,
-1);
@@ -523,7 +523,7 @@ dh_sidebar_init (DhSidebar *sidebar)
g_signal_connect (gtk_tree_view_get_selection (priv->hitlist_view),
"changed",
- G_CALLBACK (sidebar_selection_changed_cb),
+ G_CALLBACK (sidebar_hitlist_selection_changed_cb),
sidebar);
cell = gtk_cell_renderer_text_new ();
@@ -534,7 +534,7 @@ dh_sidebar_init (DhSidebar *sidebar)
-1,
NULL,
cell,
- search_cell_data_func,
+ hitlist_cell_data_func,
sidebar,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]