diff options
author | raveit65 <[email protected]> | 2018-06-08 14:23:52 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-06-21 08:19:10 +0200 |
commit | d21cbadc64065b72eb6494247bbc6d876d57eb14 (patch) | |
tree | 5812414001d2fec81755607b04ea6deace6d243b /libslab/search-bar.h | |
parent | f6d429e01de132233c5288616e57772e687358bf (diff) | |
download | mate-control-center-d21cbadc64065b72eb6494247bbc6d876d57eb14.tar.bz2 mate-control-center-d21cbadc64065b72eb6494247bbc6d876d57eb14.tar.xz |
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.
Diffstat (limited to 'libslab/search-bar.h')
-rw-r--r-- | libslab/search-bar.h | 10 |
1 files changed, 1 insertions, 9 deletions
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 |