[rhythmbox] grilo: set mnemonic only if the grilo source supports searching



commit c6de62b677e5439a30e95f6414153da895447371
Author: vrishab <gnome vrb gmail com>
Date:   Mon Nov 28 10:37:15 2016 +0530

    grilo: set mnemonic only if the grilo source supports searching
    
    https://bugzilla.gnome.org/show_bug.cgi?id=775294

 plugins/grilo/rb-grilo-source.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/plugins/grilo/rb-grilo-source.c b/plugins/grilo/rb-grilo-source.c
index ab71e0e..443ef2c 100644
--- a/plugins/grilo/rb-grilo-source.c
+++ b/plugins/grilo/rb-grilo-source.c
@@ -1155,7 +1155,9 @@ impl_selected (RBDisplayPage *page)
                start_browse (source, NULL, NULL, 0);
        }
 
-       rb_search_entry_set_mnemonic (source->priv->search_entry, TRUE);
+       if (source->priv->search_entry != NULL) {
+               rb_search_entry_set_mnemonic (source->priv->search_entry, TRUE);
+       }
 }
 
 static void
@@ -1165,7 +1167,9 @@ impl_deselected (RBDisplayPage *page)
 
        RB_DISPLAY_PAGE_CLASS (rb_grilo_source_parent_class)->deselected (page);
 
-       rb_search_entry_set_mnemonic (source->priv->search_entry, FALSE);
+       if (source->priv->search_entry != NULL) {
+               rb_search_entry_set_mnemonic (source->priv->search_entry, FALSE);
+       }
 }
 
 static RBEntryView *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]