Пример #1
0
static gboolean mtp_init (void)
{
    mutex = g_mutex_new();
    plugin_active = TRUE;
    exiting=FALSE;

    aud_plugin_menu_add (AUD_MENU_MAIN, mtp_press, _("Upload to MTP Device"), NULL);
    aud_plugin_menu_add (AUD_MENU_MAIN, free_device, _("Disconnect MTP Device"), NULL);

    return TRUE;
}
Пример #2
0
static gboolean cd_init (void)
{
    for (gint m = 0; m < N_MENUS; m ++)
        for (gint i = 0; i < N_ITEMS; i ++)
            aud_plugin_menu_add (menus[m], funcs[i], _(titles[i]),
             GTK_STOCK_CDROM);

    return TRUE;
}
Пример #3
0
static bool_t delete_files_init (void)
{
    aud_config_set_defaults ("delete_files", delete_files_defaults);

    for (int i = 0; i < ARRAY_LEN (menus); i ++)
        aud_plugin_menu_add (menus[i], start_delete, _("Delete Selected Files"), "edit-delete");

    return TRUE;
}
Пример #4
0
/*
 * initialization
 * opens the config file and reads the value, creates a new
 * config in memory if the file doesnt exist and sets default vals
 */
static gboolean alarm_init (void)
{
    AUDDBG("alarm_init\n");

    alarm_read_config();

    timeout_source = g_timeout_add_seconds (10, alarm_timeout, NULL);

    aud_plugin_menu_add (AUD_MENU_MAIN, alarm_configure, _("Set Alarm ..."), "appointment-new");

    return TRUE;
}