<commit_before>/* GTK - The GIMP Toolkit
 * Copyright (C) 2013 Red Hat, Inc.
 *
 * Authors:
 * - <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * Modified by the GTK+ Team and others 2013.  See the AUTHORS
 * file for a list of people on the GTK+ Team.  See the ChangeLog
 * files for a list of changes.  These files are distributed with
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
 */

#include "config.h"

#include "gtkentry.h"
#include "gtkentryprivate.h"
#include "gtkintl.h"
#include "gtktoolbar.h"
#include "gtktoolitem.h"
#include "gtkstylecontext.h"
#include "gtksearchbar.h"

/**
 * SECTION:gtksearchbar
 * @Short_description: An toolbar to integrate a search entry with
 * @Title: GtkSearchBar
 *
 * #GtkSearchBar is a container made to have a search entry (possibly
 * with additional connex widgets, such as drop-down menus, or buttons) built-in.
 * The search bar would appear when a search is started through typing on the
 * keyboard, or the application's search mode is toggled on.
 *
 * For keyboard presses to start a search, events will need to be forwarded
 * from the top-level window that contains the search bar. See
 * gtk_search_bar_handle_event() for example code.
 *
 * You will also need to tell the search bar about which entry you are
 * using as your search entry using gtk_search_bar_connect_entry().
 * The following example shows you how to create a more complex
 * search entry.
 *
 * <example>
 * <title>Creating a search bar</title>
 * <programlisting><![CDATA[
 * bar = gtk_search_bar_new ();
 *
 * /<!---->* Create a box for the search entry and related widgets *<---->/
 * entry = gtk_search_entry_new ();
 * box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 * gtk_box_pack_start (GTK_BOX (box), entry, TRUE, TRUE, 0);
 * /<!---->* Add a menu button to select the category of the search *<---->/<commit_msg>GtkSearchBar: Mention we don't handle Ctrl+F for the app<commit_after>/* GTK - The GIMP Toolkit
 * Copyright (C) 2013 Red Hat, Inc.
 *
 * Authors:
 * - <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * Modified by the GTK+ Team and others 2013.  See the AUTHORS
 * file for a list of people on the GTK+ Team.  See the ChangeLog
 * files for a list of changes.  These files are distributed with
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
 */

#include "config.h"

#include "gtkentry.h"
#include "gtkentryprivate.h"
#include "gtkintl.h"
#include "gtktoolbar.h"
#include "gtktoolitem.h"
#include "gtkstylecontext.h"
#include "gtksearchbar.h"

/**
 * SECTION:gtksearchbar
 * @Short_description: An toolbar to integrate a search entry with
 * @Title: GtkSearchBar
 *
 * #GtkSearchBar is a container made to have a search entry (possibly
 * with additional connex widgets, such as drop-down menus, or buttons) built-in.
 * The search bar would appear when a search is started through typing on the
 * keyboard, or the application's search mode is toggled on.
 *
 * For keyboard presses to start a search, events will need to be forwarded
 * from the top-level window that contains the search bar. See
 * gtk_search_bar_handle_event() for example code. Common shortcuts such as Ctrl+F
 * should be handled as an application action, or through the menu items.
 *
 * You will also need to tell the search bar about which entry you are
 * using as your search entry using gtk_search_bar_connect_entry().
 * The following example shows you how to create a more complex
 * search entry.
 *
 * <example>
 * <title>Creating a search bar</title>
 * <programlisting><![CDATA[
 * bar = gtk_search_bar_new ();
 *
 * /<!---->* Create a box for the search entry and related widgets *<---->/
 * entry = gtk_search_entry_new ();
 * box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 * gtk_box_pack_start (GTK_BOX (box), entry, TRUE, TRUE, 0);
 * /<!---->* Add a menu button to select the category of the search *<---->/
{'fraction_non_alphanumeric': 0.09526592635885447, 'fraction_numerical': 0.004285992596921878, 'mean_word_length': 3.7936507936507935, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2179341', 'n_tokens_mistral': 1557, 'n_tokens_neox': 1484, 'n_words': 685}