RBSourceSearchBasic

RBSourceSearchBasic — Simple implementation of RBSourceSearch

Synopsis

                    RBSourceSearchBasic;
                    RBSourceSearchBasicClass;
RBSourceSearch *    rb_source_search_basic_new          (RhythmDBPropType prop);
void                rb_source_search_basic_create_for_actions
                                                        (GtkActionGroup *action_group,
                                                         GtkRadioActionEntry *actions,
                                                         int n_actions);

Object Hierarchy

  GObject
   +----RBSourceSearch
         +----RBSourceSearchBasic

Properties

  "prop"                     gint                  : Read / Write / Construct Only

Description

This implementation of RBSourceSearch constructs queries that search on a single RhythmDBEntry property. It's useful for providing basic searches.

Details

RBSourceSearchBasic

typedef struct _RBSourceSearchBasic RBSourceSearchBasic;


RBSourceSearchBasicClass

typedef struct {
	RBSourceSearchClass parent_class;
} RBSourceSearchBasicClass;


rb_source_search_basic_new ()

RBSourceSearch *    rb_source_search_basic_new          (RhythmDBPropType prop);

Creates a new RBSourceSearchBasic instance. This performs simple string matching on a specified property.

prop :

the RhythmDBPropType to search

Returns :

newly created RBSourceSearchBasic

rb_source_search_basic_create_for_actions ()

void                rb_source_search_basic_create_for_actions
                                                        (GtkActionGroup *action_group,
                                                         GtkRadioActionEntry *actions,
                                                         int n_actions);

Creates RBSourceSearchBasic instances for a set of search actions and associates them with the actions. The property to match on is taken from the action value in the GtkRadioActionEntry structure.

action_group :

the GtkActionGroup containing the actions

actions :

the GtkRadioActionEntries for the actions

n_actions :

the number of actions

Property Details

The "prop" property

  "prop"                     gint                  : Read / Write / Construct Only

Property id.

Allowed values: [0,67]

Default value: 0