~ubuntu-branches/ubuntu/quantal/cairo-dock-plug-ins/quantal-201208191523

« back to all changes in this revision

Viewing changes to Scooby-Do/src/applet-backend-firefox.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-08-10 00:05:57 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100810000557-pfxoz5w7hbyclcqh
Tags: 2.2.0~0beta4-0ubuntu1
* New Upstream Version (LP: #614625)
* Fixed a few bugs on LP:
 - LP: #483963: Dustbin applet does not display trashes on all volumes
 - LP: #485159: Some apps have problem with Systray
 - LP: #500677: ~/.xsession-errors is too much used by CD
 - LP: #500979: Shortcuts: the order gets messed up
 - LP: #521531: Mail: crashes on Maildir
 - LP: #519915: GTG: create a new applet to control GTG
 - LP: #526138: GMenu doesn't handle desktop file exec strings properly
 - LP: #531317: CMake: Added an error if the prefix of 'cairo-dock-plugins'
                 is not the same 'cairo-dock-core'
 - LP: #531319: CMake: check the version of 'cairo-dock' when building
                 'cairo-dock-plugins'
 - LP: #537115: Click at the position where icon lavel was, the icon
                 and dock still receive the event
 - LP: #537943: Terminal applet shortkey behaviour
 - LP: #538637: Trash applet doesn't create .trashinfo files on XFCE
 - More details on the 'ChangeLog' file
* debian/rules:
 - Autotools has been replaced by CMake
 - cdbs is now used.
* debian/copyright:
 - Updated with the new applets
* debian/control:
 - Autotools has been replaced by CMake
 - Added libcurl4-gnutls-dev, libindicator-dev, libdbusmenu-glib-dev
   libido-0.1-dev, libical-dev, libdbusmenu-gtk-dev as Build-deps
 - Bump Standard-Version to 3.9.1
 - Wget is required for dnd2share applet
 - Added the exact realease for 'cairo-dock-dev' in order to prevent any
    build error if this package is not already available (thx to didrocks)
* debian/cairo-dock-plug-ins*.install:
 - All sonames are now installed into lib32 or lib64 (lib*)

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
                cd_warning ("no bookmarks");
236
236
                return FALSE;
237
237
        }
238
 
        g_print ("found bookmarks '%s'\n", s_cBookmarksFile);
 
238
        cd_debug ("found bookmarks '%s'\n", s_cBookmarksFile);
239
239
        
240
240
        // on parse le fichier.
241
241
        s_pRootItem = _parse_bookmarks (s_cBookmarksFile);
260
260
 
261
261
static void _on_file_event (CairoDockFMEventType iEventType, const gchar *cURI, gpointer data)
262
262
{
263
 
        g_print ("bookmarks have changed\n");
 
263
        cd_debug ("bookmarks have changed\n");
264
264
        switch (iEventType)
265
265
        {
266
266
                case CAIRO_DOCK_FILE_DELETED :
291
291
        g_return_val_if_fail (icon != NULL, FALSE);
292
292
        //g_print ("-> data : %d\n", icon);
293
293
        
294
 
        cairo_t* pSourceContext = cairo_dock_create_context_from_container (CAIRO_CONTAINER (g_pMainDock));
295
294
        GInputStream * is = g_memory_input_stream_new_from_data (icon,
296
295
                out_len,
297
296
                NULL);
302
301
        double fImageWidth=0, fImageHeight=0;
303
302
        double fZoomX=0, fZoomY=0;
304
303
        pEntry->pIconSurface = cairo_dock_create_surface_from_pixbuf (pixbuf,
305
 
                pSourceContext,
306
304
                1.,
307
305
                myDialogs.dialogTextDescription.iSize, myDialogs.dialogTextDescription.iSize,
308
306
                0,
309
307
                &fImageWidth, &fImageHeight,
310
308
                &fZoomX, &fZoomY);
311
309
        g_object_unref (pixbuf);
312
 
        cairo_destroy (pSourceContext);
313
310
        g_free (icon);
314
311
        
315
312
        return TRUE;
322
319
 
323
320
static void _cd_do_launch_url (CDEntry *pEntry)
324
321
{
325
 
        g_print ("%s (%s)\n", __func__, pEntry->cPath);
 
322
        cd_debug ("%s (%s)\n", __func__, pEntry->cPath);
326
323
        //cairo_dock_fm_launch_uri (pEntry->cPath);
327
324
        cairo_dock_launch_command_printf ("firefox \"%s\"", NULL, pEntry->cPath);
328
325
}
329
326
 
330
327
static void _cd_do_launch_in_new_window (CDEntry *pEntry)
331
328
{
332
 
        g_print ("%s (%s)\n", __func__, pEntry->cPath);
 
329
        cd_debug ("%s (%s)\n", __func__, pEntry->cPath);
333
330
        cairo_dock_launch_command_printf ("firefox -no-remote \"%s\"", NULL, pEntry->cPath);
334
331
}
335
332
 
336
333
static void _cd_do_copy_url (CDEntry *pEntry)
337
334
{
338
 
        g_print ("%s (%s)\n", __func__, pEntry->cPath);
 
335
        cd_debug ("%s (%s)\n", __func__, pEntry->cPath);
339
336
        GtkClipboard *pClipBoard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
340
337
        gtk_clipboard_set_text (pClipBoard, pEntry->cPath, -1);
341
338
}
342
339
 
343
340
static void _cd_do_launch_all_url (CDEntry *pEntry)
344
341
{
345
 
        g_print ("%s (%s)\n", __func__, pEntry->cPath);
 
342
        cd_debug ("%s (%s)\n", __func__, pEntry->cPath);
346
343
        cairo_dock_launch_command_printf ("firefox %s", NULL, pEntry->cPath);
347
344
}
348
345
 
433
430
        {
434
431
                pSubEntry = g_new0 (CDEntry, 1);
435
432
                pSubEntry->cPath = sAllUrls->str;
436
 
                pSubEntry->cName = g_strdup (D_("Open all"));
 
433
                pSubEntry->cName = g_strdup (D_("Open file"));
437
434
                pSubEntry->cIconName = g_strdup (GTK_STOCK_OPEN);
438
435
                pSubEntry->fill = cd_do_fill_default_entry;
439
436
                pSubEntry->execute = _cd_do_launch_all_url;
484
481
}
485
482
static GList* search (const gchar *cText, int iFilter, gboolean bSearchAll, int *iNbEntries)
486
483
{
487
 
        g_print ("%s (%s)\n", __func__, cText);
 
484
        cd_debug ("%s (%s)\n", __func__, cText);
488
485
        if (s_pRootItem == NULL)
489
486
                return NULL;
490
487