static void
rb_ipod_plugin_cmd_properties (GtkAction *action,
                               RBIpodPlugin *plugin)
{
    RBSource *source = NULL;

    g_object_get (G_OBJECT (plugin->shell),
                  "selected-source", &source,
                  NULL);
    if ((source == NULL) || !RB_IS_IPOD_SOURCE (source)) {
        g_critical ("got iPodSourceProperties action for non-ipod source");
        return;
    }

    rb_media_player_source_show_properties (RB_MEDIA_PLAYER_SOURCE (source));
    g_object_unref (G_OBJECT (source));
}
static void
properties_action_cb (GSimpleAction *action, GVariant *parameter, gpointer data)
{
	rb_media_player_source_show_properties (RB_MEDIA_PLAYER_SOURCE (data));
}
Example #3
0
static void
rb_mtp_plugin_properties (GtkAction *action, RBSource *source)
{
	g_return_if_fail (RB_IS_MTP_SOURCE (source));
	rb_media_player_source_show_properties (RB_MEDIA_PLAYER_SOURCE (source));
}