diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2020-12-12 15:43:22 +0500 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2020-12-12 15:43:22 +0500 |
commit | 65ae37facad7e7ee690acac8ceb6488a31d7071a (patch) | |
tree | 768d854c9451b9a1d2c04aea53d763ceeec23457 | |
parent | c2a819e8e33065fa3e193b8ec5fef6a942d9cfb2 (diff) | |
download | epiphany-wip/exalm/papercut.tar.gz |
search-engine-listbox: Don't make selectablewip/exalm/papercut
Avoid a glitch with button borders.
-rw-r--r-- | src/preferences/ephy-search-engine-listbox.c | 3 |
1 files changed, 2 insertions, 1 deletions
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. */ |