CodeSlayerSearch

CodeSlayerSearch — The global search page.

Synopsis

#include <codeslayer/codeslayer-search.h>

struct              CodeSlayerSearch;
GtkWidget *         codeslayer_search_new               (GtkWindow *window,
                                                         CodeSlayerPreferences *preferences,
                                                         CodeSlayerGroups *groups);
void                codeslayer_search_find_projects     (CodeSlayerSearch *search);
void                codeslayer_search_find_selection    (CodeSlayerSearch *search,
                                                         const gchar *file_paths);
void                codeslayer_search_clear             (CodeSlayerSearch *search);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----GtkContainer
                     +----GtkBin
                           +----GtkWindow
                                 +----CodeSlayerSearch

Implemented Interfaces

CodeSlayerSearch implements AtkImplementorIface and GtkBuildable.

Signals

  "close"                                          : No Hooks
  "select-document"                                : No Hooks

Description

The global search will find text in the files under the active group.

Details

struct CodeSlayerSearch

struct CodeSlayerSearch;

codeslayer_search_new ()

GtkWidget *         codeslayer_search_new               (GtkWindow *window,
                                                         CodeSlayerPreferences *preferences,
                                                         CodeSlayerGroups *groups);

Creates a new CodeSlayerSearch.

window :

a GtkWindow.

preferences :

a CodeSlayerPreferences.

groups :

a CodeSlayerGroups.

Returns :

a new CodeSlayerSearch.

codeslayer_search_find_projects ()

void                codeslayer_search_find_projects     (CodeSlayerSearch *search);

search :

a CodeSlayerSearch.

codeslayer_search_find_selection ()

void                codeslayer_search_find_selection    (CodeSlayerSearch *search,
                                                         const gchar *file_paths);

search :

a CodeSlayerSearch.

file_paths :

the file paths as a comma separated list.

codeslayer_search_clear ()

void                codeslayer_search_clear             (CodeSlayerSearch *search);

search :

a CodeSlayerSearch.

Signal Details

The "close" signal

void                user_function                      (CodeSlayerSearch *codeslayersearch,
                                                        gpointer          user_data)             : No Hooks

Note: for internal use only.

The ::close signal is a request to close the search box.

codeslayersearch :

the search that received the signal

user_data :

user data set when the signal handler was connected.

The "select-document" signal

void                user_function                      (CodeSlayerSearch *codeslayersearch,
                                                        gpointer          arg1,
                                                        gpointer          user_data)             : No Hooks

Note: for internal use only.

The ::select-document signal is a request to select the document in the tree (which in turn adds a page in the notebook).

codeslayersearch :

the search that received the signal

user_data :

user data set when the signal handler was connected.