[epiphany/wip/exalm/papercut: 2/2] search-engine-listbox: Don't make selectable
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/exalm/papercut: 2/2] search-engine-listbox: Don't make selectable
- Date: Sat, 12 Dec 2020 10:51:27 +0000 (UTC)
commit 65ae37facad7e7ee690acac8ceb6488a31d7071a
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Dec 12 15:43:22 2020 +0500
search-engine-listbox: Don't make selectable
Avoid a glitch with button borders.
src/preferences/ephy-search-engine-listbox.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/preferences/ephy-search-engine-listbox.c b/src/preferences/ephy-search-engine-listbox.c
index 3c5e2303f..12ff38423 100644
--- a/src/preferences/ephy-search-engine-listbox.c
+++ b/src/preferences/ephy-search-engine-listbox.c
@@ -740,7 +740,6 @@ ephy_search_engine_list_box_init (EphySearchEngineListBox *self)
g_strfreev (names);
row_add_search_engine = gtk_list_box_row_new ();
- gtk_list_box_row_set_selectable (GTK_LIST_BOX_ROW (row_add_search_engine), FALSE);
gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row_add_search_engine), TRUE);
gtk_widget_set_size_request (row_add_search_engine, -1, 50);
gtk_list_box_prepend (GTK_LIST_BOX (self), row_add_search_engine);
@@ -758,6 +757,8 @@ ephy_search_engine_list_box_init (EphySearchEngineListBox *self)
gtk_list_box_set_sort_func (GTK_LIST_BOX (self), sort_search_engine_list_box_cb, NULL, NULL);
gtk_list_box_invalidate_sort (GTK_LIST_BOX (self));
+ gtk_list_box_set_selection_mode (GTK_LIST_BOX (self), GTK_SELECTION_NONE);
+
list_box_length = get_list_box_length (GTK_WIDGET (self));
/* The list box should have at least one "Add search engine" row and one search engine (the default one).
*/
/* Since we don't allow removing the last search engine, this won't abort the application unless the user
fiddles with gsettings. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]