aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ephy-completion-model.c12
-rw-r--r--src/ephy-completion-model.h1
-rw-r--r--src/ephy-location-action.c3
3 files changed, 15 insertions, 1 deletions
diff --git a/src/ephy-completion-model.c b/src/ephy-completion-model.c
index b54122bf8..75358c096 100644
--- a/src/ephy-completion-model.c
+++ b/src/ephy-completion-model.c
@@ -271,6 +271,7 @@ ephy_completion_model_get_column_type (GtkTreeModel *tree_model,
case EPHY_COMPLETION_TEXT_COL:
case EPHY_COMPLETION_ACTION_COL:
case EPHY_COMPLETION_KEYWORDS_COL:
+ case EPHY_COMPLETION_EXTRA_COL:
type = G_TYPE_STRING;
break;
case EPHY_COMPLETION_RELEVANCE_COL:
@@ -427,6 +428,17 @@ ephy_completion_model_get_value (GtkTreeModel *tree_model,
switch (column)
{
+ case EPHY_COMPLETION_EXTRA_COL:
+ g_value_init (value, G_TYPE_STRING);
+ /* We set an additional text for the item title only for history, since we assume that people know the url of their bookmarks */
+ if (group == HISTORY_GROUP)
+ {
+ const char *text;
+ text = ephy_node_get_property_string
+ (node, EPHY_NODE_PAGE_PROP_TITLE);
+ g_value_set_string (value, text);
+ }
+ break;
case EPHY_COMPLETION_TEXT_COL:
g_value_init (value, G_TYPE_STRING);
init_text_col (value, node, group);
diff --git a/src/ephy-completion-model.h b/src/ephy-completion-model.h
index 319c94eed..d54470912 100644
--- a/src/ephy-completion-model.h
+++ b/src/ephy-completion-model.h
@@ -40,6 +40,7 @@ typedef enum
EPHY_COMPLETION_ACTION_COL,
EPHY_COMPLETION_KEYWORDS_COL,
EPHY_COMPLETION_RELEVANCE_COL,
+ EPHY_COMPLETION_EXTRA_COL,
N_COL
} EphyCompletionColumn;
diff --git a/src/ephy-location-action.c b/src/ephy-location-action.c
index df230479c..25af807a5 100644
--- a/src/ephy-location-action.c
+++ b/src/ephy-location-action.c
@@ -368,7 +368,8 @@ connect_proxy (GtkAction *action, GtkWidget *proxy)
EPHY_COMPLETION_TEXT_COL,
EPHY_COMPLETION_ACTION_COL,
EPHY_COMPLETION_KEYWORDS_COL,
- EPHY_COMPLETION_RELEVANCE_COL);
+ EPHY_COMPLETION_RELEVANCE_COL,
+ EPHY_COMPLETION_EXTRA_COL);
add_completion_actions (action, proxy);