~ubuntu-branches/ubuntu/saucy/cairo-dock-plug-ins/saucy

« back to all changes in this revision

Viewing changes to Folders/src/applet-notifications.c

Tags: upstream-2.2.0~2
ImportĀ upstreamĀ versionĀ 2.2.0~2

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        }
52
52
        else if (CD_APPLET_CLICKED_ICON != NULL)
53
53
        {
54
 
                g_print ("clic on %s\n", CD_APPLET_CLICKED_ICON->cBaseURI);
 
54
                //g_print ("clic on %s\n", CD_APPLET_CLICKED_ICON->cBaseURI);
55
55
                if (CD_APPLET_CLICKED_ICON->iVolumeID == -1)
56
56
                {
57
 
                        g_print ("folder\n");
 
57
                        //g_print ("folder\n");
58
58
                        
59
59
                        /// lister le repertoire dans un thread.
60
60
                        
350
350
                                app[1] = CD_APPLET_CLICKED_CONTAINER;
351
351
                                app[2] = myApplet;
352
352
                                app[3] = g_strdup (pAppInfo[1]);
353
 
                                g_print (" + %s (%s ; %s)\n", pAppInfo[0], pAppInfo[1], pAppInfo[2]);
 
353
                                //g_print (" + %s (%s ; %s)\n", pAppInfo[0], pAppInfo[1], pAppInfo[2]);
354
354
                                myData.pAppList = g_list_prepend (myData.pAppList, app);
355
355
                                
356
356
                                if (pAppInfo[2] != NULL)
364
364
                        g_list_free (pApps);
365
365
                }
366
366
                else
367
 
                        g_print ("no apps list for '%s'\n", CD_APPLET_CLICKED_ICON->cBaseURI);
 
367
                        //g_print ("no apps list for '%s'\n", CD_APPLET_CLICKED_ICON->cBaseURI);
368
368
                
369
369
                CD_APPLET_ADD_SEPARATOR_IN_MENU (CD_APPLET_MY_MENU);
370
370
                CD_APPLET_ADD_IN_MENU_WITH_STOCK_AND_DATA (D_("Properties"), GTK_STOCK_PROPERTIES, _cd_folders_show_file_properties, CD_APPLET_MY_MENU, data);
381
381
 
382
382
gboolean cd_folders_on_drop_data (gpointer data, const gchar *cReceivedData, Icon *icon, double fOrder, CairoContainer *pContainer)
383
383
{
384
 
        g_print ("Folders received '%s'\n", cReceivedData);
 
384
        //g_print ("Folders received '%s'\n", cReceivedData);
385
385
        
386
386
        if (fOrder == CAIRO_DOCK_LAST_ORDER)  // lachage sur une icone.
387
387
                return CAIRO_DOCK_LET_PASS_NOTIFICATION;
394
394
        
395
395
        if (g_file_test (cPath, G_FILE_TEST_IS_DIR))
396
396
        {
397
 
                g_print (" ajout d'un repertoire...\n");
 
397
                //g_print (" ajout d'un repertoire...\n");
398
398
                CairoDockModule *pModule = cairo_dock_find_module_from_name ("Folders");
399
399
                g_return_val_if_fail (pModule != NULL, CAIRO_DOCK_LET_PASS_NOTIFICATION);
400
400