159
159
Icon *pPointingIcon = cairo_dock_search_icon_pointing_on_dock (pDock, &pParentDock);
160
160
if (pPointingIcon != NULL)
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.
167
cairo_dock_pop_up (pDock);
167
///cairo_dock_pop_up (pDock);
169
169
cairo_dock_emit_enter_signal (pDock);
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");
224
224
//\_________________ on gere le changement d'icone/dock.
225
225
cd_do_change_current_icon (pIcon, pDock);
269
269
if (myData.sCurrentText->len == 0)
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;
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);
280
280
if (myData.pMatchingIcons == NULL)
282
282
if (myData.bSessionStartedAutomatically) // on cherche dans le dock courant.
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);
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);
299
299
else // optimisation : on peut se contenter de chercher parmi les icones deja trouvees.
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;
304
304
ic = myData.pMatchingIcons;