From d21cbadc64065b72eb6494247bbc6d876d57eb14 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 8 Jun 2018 14:23:52 +0200 Subject: libslab: code clean up Since we use GtkSearchEntry a lot of code can be dropped. https://github.com/mate-desktop/mate-control-center/commit/afcb324 Eg: GtkSearchEntry has a own menu in result search-context-picker.c does nothing. So other code in searchbar.c isn't used. --- libslab/search-bar.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'libslab/search-bar.h') diff --git a/libslab/search-bar.h b/libslab/search-bar.h index f713b20f..65d0aba7 100644 --- a/libslab/search-bar.h +++ b/libslab/search-bar.h @@ -43,7 +43,7 @@ typedef struct { GtkBoxClass parent_class; - void (*search) (NldSearchBar *, int context_id, const char *text); + void (*search) (NldSearchBar *, const char *text); } NldSearchBarClass; GType nld_search_bar_get_type (void); @@ -53,11 +53,6 @@ GtkWidget *nld_search_bar_new (void); void nld_search_bar_clear (NldSearchBar * search_bar); gboolean nld_search_bar_has_focus (NldSearchBar * search_bar); -gboolean nld_search_bar_get_show_contexts (NldSearchBar * search_bar); -void nld_search_bar_set_show_contexts (NldSearchBar * search_bar, gboolean show_contexts); -void nld_search_bar_add_context (NldSearchBar * search_bar, const char *label, - const char *icon_name, int context_id); - gboolean nld_search_bar_get_show_button (NldSearchBar * search_bar); void nld_search_bar_set_show_button (NldSearchBar * search_bar, gboolean show_button); @@ -67,9 +62,6 @@ void nld_search_bar_set_search_timeout (NldSearchBar * search_bar, int search_ti const char *nld_search_bar_get_text (NldSearchBar * search_bar); void nld_search_bar_set_text (NldSearchBar * search_bar, const char *text, gboolean activate); -int nld_search_bar_get_context_id (NldSearchBar * search_bar); -void nld_search_bar_set_context_id (NldSearchBar * search_bar, int context_id); - #ifdef __cplusplus } #endif -- cgit v1.2.1