~ubuntu-branches/ubuntu/trusty/rhythmbox/trusty-proposed

« back to all changes in this revision

Viewing changes to plugins/grilo/rb-grilo-source.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2011-11-22 03:30:41 UTC
  • mto: (1.3.2)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: package-import@ubuntu.com-20111122033041-szxjds5epwzk345s
Tags: upstream-2.90.1~git20111117.f101562
ImportĀ upstreamĀ versionĀ 2.90.1~git20111117.f101562

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
 
86
86
static void impl_delete_thyself (RBDisplayPage *page);
87
87
static void impl_selected (RBDisplayPage *page);
 
88
static void impl_deselected (RBDisplayPage *page);
88
89
 
89
90
static RBEntryView *impl_get_entry_view (RBSource *source);
90
91
 
179
180
 
180
181
        page_class->delete_thyself = impl_delete_thyself;
181
182
        page_class->selected = impl_selected;
 
183
        page_class->deselected = impl_deselected;
182
184
 
183
185
        source_class->impl_get_entry_view = impl_get_entry_view;
184
186
 
364
366
 
365
367
        /* search bar (if the source supports searching) */
366
368
        if (grl_metadata_source_supported_operations (GRL_METADATA_SOURCE (source->priv->grilo_source)) & GRL_OP_SEARCH) {
367
 
                source->priv->search_entry = rb_search_entry_new ();
 
369
                source->priv->search_entry = rb_search_entry_new (FALSE);
368
370
                g_object_set (source->priv->search_entry, "explicit-mode", TRUE, NULL);
369
371
                g_signal_connect (source->priv->search_entry, "search", G_CALLBACK (search_cb), source);
370
372
                g_signal_connect (source->priv->search_entry, "activate", G_CALLBACK (search_cb), source);
1075
1077
impl_selected (RBDisplayPage *page)
1076
1078
{
1077
1079
        RBGriloSource *source = RB_GRILO_SOURCE (page);
 
1080
 
 
1081
        RB_DISPLAY_PAGE_CLASS (rb_grilo_source_parent_class)->selected (page);
 
1082
 
1078
1083
        if (source->priv->done_initial_browse == FALSE) {
1079
1084
                source->priv->done_initial_browse = TRUE;
1080
1085
                start_browse (source, NULL, NULL, 0);
1081
1086
        }
 
1087
 
 
1088
        rb_search_entry_set_mnemonic (source->priv->search_entry, TRUE);
 
1089
}
 
1090
 
 
1091
static void
 
1092
impl_deselected (RBDisplayPage *page)
 
1093
{
 
1094
        RBGriloSource *source = RB_GRILO_SOURCE (page);
 
1095
 
 
1096
        RB_DISPLAY_PAGE_CLASS (rb_grilo_source_parent_class)->deselected (page);
 
1097
 
 
1098
        rb_search_entry_set_mnemonic (source->priv->search_entry, FALSE);
1082
1099
}
1083
1100
 
1084
1101
static RBEntryView *