~cairo-dock-team/ubuntu/natty/cairo-dock-plug-ins/2.3.0-1

« back to all changes in this revision

Viewing changes to dnd2share/src/applet-backend-free.c

  • Committer: matttbe
  • Date: 2011-04-19 20:04:38 UTC
  • mfrom: (21.1.1 upstream)
  • Revision ID: matttbe@gmail.com-20110419200438-wtcdthgctt9v6hp8
* New Upstream Version (LP: #723995)
* Upstream short ChangeLog:
 - Updated translations
 - Updated the integration of the new versions of kwin and compiz
    (Switcher, ShowDesktop, etc.)
 - Removed a lot of useless g_print
 - Updated a few plug-ins to fit with the new version of the API (gldit)
 - Fixed a few bugs
 - Updated MeMenu, MessagingMenu and Status-Notifier to works
    with the latest version of dbusmenu, etc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#define NB_URLS 1
33
33
static const gchar *s_UrlLabels[NB_URLS] = {"DirectLink"};
34
34
 
35
 
static void upload (const gchar *cFilePath)
 
35
static void upload (const gchar *cFilePath, gchar *cDropboxDir, gboolean bAnonymous, gint iLimitRate, gchar **cResultUrls)
36
36
{
37
37
        // On lance la commande d'upload.
38
 
        gchar *cCommand = g_strdup_printf ("%s/%s \"%s\" \"%dk\"", MY_APPLET_SHARE_DATA_DIR, "upload2free.sh", cFilePath, myConfig.iLimitRate);
 
38
        gchar *cCommand = g_strdup_printf ("%s/%s \"%s\" \"%dk\"", MY_APPLET_SHARE_DATA_DIR, "upload2free.sh", cFilePath, iLimitRate);
 
39
        cd_debug ("%s", cCommand);
39
40
        gchar *cResult = cairo_dock_launch_command_sync (cCommand);
40
41
        g_free (cCommand);
41
42
        if (cResult == NULL || *cResult == '\0')
49
50
                cResult[strlen(cResult)-1] = '\0';
50
51
        
51
52
        // Enfin on remplit la memoire partagee avec nos URLs.
52
 
        myData.cResultUrls[0] = cResult;
 
53
        cResultUrls[0] = cResult;
53
54
}
54
55
 
55
56