CPPFLAGS += -DFEATURE_SEARCH_HIGHLIGHT
CPPFLAGS += -DFEATURE_NO_SCROLLBARS
#CPPFLAGS += -DFEATURE_GTK_PROGRESSBAR
+CPPFLAGS += -DFEATURE_TITLE_IN_COMPLETION
LIBS = libsoup-2.4
gtk_list_store_set(
store, &iter,
COMPLETION_STORE_FIRST, bm->uri,
- COMPLETION_STORE_SECOND, bm->title, -1
+#ifdef FEATURE_TITLE_IN_COMPLETION
+ COMPLETION_STORE_SECOND, bm->title,
+#endif
+ -1
);
found = true;
}
gtk_list_store_set(
store, &iter,
COMPLETION_STORE_FIRST, bm->uri,
- COMPLETION_STORE_SECOND, bm->title, -1
+#ifdef FEATURE_TITLE_IN_COMPLETION
+ COMPLETION_STORE_SECOND, bm->title,
+#endif
+ -1
);
found = true;
}
gtk_tree_view_column_set_min_width(column, 2 * width/3);
/* prepare second column */
+#ifdef FEATURE_TITLE_IN_COMPLETION
column = gtk_tree_view_column_new();
gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_FIXED);
gtk_tree_view_append_column(GTK_TREE_VIEW(comp.tree), column);
);
gtk_tree_view_column_pack_start(column, renderer, true);
gtk_tree_view_column_add_attribute(column, renderer, "text", COMPLETION_STORE_SECOND);
+#endif
/* use max 1/3 of window height for the completion */
#ifdef HAS_GTK3
enum {
COMPLETION_STORE_FIRST,
+#ifdef FEATURE_TITLE_IN_COMPLETION
COMPLETION_STORE_SECOND,
+#endif
COMPLETION_STORE_NUM
};
gtk_list_store_set(
store, &iter,
COMPLETION_STORE_FIRST, item->first,
- COMPLETION_STORE_SECOND, item->second, -1
+#ifdef FEATURE_TITLE_IN_COMPLETION
+ COMPLETION_STORE_SECOND, item->second,
+#endif
+ -1
);
found = true;
}
gtk_list_store_set(
store, &iter,
COMPLETION_STORE_FIRST, item->first,
- COMPLETION_STORE_SECOND, item->second, -1
+#ifdef FEATURE_TITLE_IN_COMPLETION
+ COMPLETION_STORE_SECOND, item->second,
+#endif
+ -1
);
found = true;
}
gtk_list_store_set(
store, &iter,
COMPLETION_STORE_FIRST, item->first,
- COMPLETION_STORE_SECOND, item->second, -1
+#ifdef FEATURE_TITLE_IN_COMPLETION
+ COMPLETION_STORE_SECOND, item->second,
+#endif
+ -1
);
found = true;
}