~cairo-dock-team/ubuntu/quantal/cairo-dock-plug-ins/3.0.2

« back to all changes in this revision

Viewing changes to Scooby-Do/src/applet-icon-finder.c

Tags: upstream-2.2.0~0beta4
ImportĀ upstreamĀ versionĀ 2.2.0~0beta4

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
                                Icon *pPointingIcon = cairo_dock_search_icon_pointing_on_dock (pDock, &pParentDock);
160
160
                                if (pPointingIcon != NULL)
161
161
                                {
162
 
                                        cairo_dock_show_subdock (pPointingIcon, pParentDock, FALSE);  // utile pour le montrage des sous-docks au clic.
 
162
                                        cairo_dock_show_subdock (pPointingIcon, pParentDock);  // utile pour le montrage des sous-docks au clic.
163
163
                                }
164
164
                        }
165
165
                        else
166
166
                        {
167
 
                                cairo_dock_pop_up (pDock);
 
167
                                ///cairo_dock_pop_up (pDock);
168
168
                        }
169
169
                        cairo_dock_emit_enter_signal (pDock);
170
170
                }
219
219
        //\_________________ on cherche un lanceur correspondant.
220
220
        CairoDock *pDock;
221
221
        Icon *pIcon = cd_do_search_icon_by_command (myData.sCurrentText->str, (bLoopSearch ? myData.pCurrentIcon : NULL), &pDock);
222
 
        g_print ("found icon : %s\n", pIcon ? pIcon->cName : "none");
 
222
        cd_debug ("found icon : %s\n", pIcon ? pIcon->cName : "none");
223
223
        
224
224
        //\_________________ on gere le changement d'icone/dock.
225
225
        cd_do_change_current_icon (pIcon, pDock);
268
268
{
269
269
        if (myData.sCurrentText->len == 0)
270
270
                return;
271
 
        g_print ("%s (%s)\n", __func__, myData.sCurrentText->str);
 
271
        cd_debug ("%s (%s)\n", __func__, myData.sCurrentText->str);
272
272
        gchar *str = strchr (myData.sCurrentText->str, ' ');  // on ne compte pas les arguments d'une eventuelle commande deja tapee.
273
273
        int length = myData.sCurrentText->len;
274
274
        if (str != NULL)
275
275
        {
276
276
                g_string_set_size (myData.sCurrentText, str - myData.sCurrentText->str + 1);
277
 
                g_print (" on ne cherchera que '%s' (len=%d)\n", myData.sCurrentText->str, myData.sCurrentText->len);
 
277
                cd_debug (" on ne cherchera que '%s' (len=%d)\n", myData.sCurrentText->str, myData.sCurrentText->len);
278
278
        }
279
279
                
280
280
        if (myData.pMatchingIcons == NULL)
281
281
        {
282
282
                if (myData.bSessionStartedAutomatically)  // on cherche dans le dock courant.
283
283
                {
284
 
                        g_print ("on cherche dans le dock\n");
 
284
                        cd_debug ("on cherche dans le dock\n");
285
285
                        _cd_do_search_matching_icons_in_dock (myData.pCurrentDock);
286
286
                        myData.pMatchingIcons = g_list_reverse (myData.pMatchingIcons);
287
287
                }
288
288
                else
289
289
                {
290
 
                        g_print ("on cherche tout\n");
 
290
                        cd_debug ("on cherche tout\n");
291
291
                        // on parcours tous les docks.
292
292
                        cairo_dock_foreach_icons_in_docks ((CairoDockForeachIconFunc) _cd_do_search_in_one_dock, NULL);
293
293
                        myData.pMatchingIcons = g_list_reverse (myData.pMatchingIcons);
298
298
        }
299
299
        else  // optimisation : on peut se contenter de chercher parmi les icones deja trouvees.
300
300
        {
301
 
                g_print ("on se contente d'enlever celles en trop\n");
 
301
                cd_debug ("on se contente d'enlever celles en trop\n");
302
302
                GList *ic, *next_ic;
303
303
                Icon *pIcon;
304
304
                ic = myData.pMatchingIcons;