~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-web.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:
50
50
{
51
51
        if (pEntry->cIconName && pEntry->pIconSurface == NULL)
52
52
        {
53
 
                cairo_t* pSourceContext = cairo_dock_create_context_from_container (CAIRO_CONTAINER (g_pMainDock));
54
53
                gchar *cImagePath = g_strconcat (MY_APPLET_SHARE_DATA_DIR, "/", pEntry->cIconName, NULL);
55
54
                pEntry->pIconSurface = cairo_dock_create_surface_from_icon (cImagePath,
56
 
                        pSourceContext,
57
55
                        myDialogs.dialogTextDescription.iSize + 2,
58
56
                        myDialogs.dialogTextDescription.iSize + 2);
59
 
                cairo_destroy (pSourceContext);
60
57
                g_free (cImagePath);
61
58
                return TRUE;
62
59
        }
73
70
        gchar *cEscapedText = g_uri_escape_string (myData.cSearchText ? myData.cSearchText : myData.sCurrentText->str,
74
71
                "",
75
72
                TRUE);
76
 
        g_print ("cEscapedText : %s\n", cEscapedText);
 
73
        cd_debug ("cEscapedText : %s\n", cEscapedText);
77
74
        gchar *cURI = g_strdup_printf (pEntry->cPath, cEscapedText);
78
75
        cairo_dock_fm_launch_uri (cURI);
79
76
        g_free (cURI);
92
89
 
93
90
static GList* search (const gchar *cText, int iFilter, gboolean bSearchAll, int *iNbEntries)
94
91
{
95
 
        g_print ("%s (%s)\n", __func__, cText);
 
92
        cd_debug ("%s (%s)\n", __func__, cText);
96
93
        
97
94
        GList *pEntries = NULL;
98
95
        CDEntry *pEntry;
107
104
        
108
105
        pEntry = g_new0 (CDEntry, 1);
109
106
        pEntry->cPath = g_strdup ("http://search.yahoo.com/search?p=%s&ie=utf-8");
110
 
        pEntry->cName = g_strdup (D_("Yahoo"));
 
107
        pEntry->cName = g_strdup (D_("Yahoo!"));
111
108
        pEntry->cIconName = g_strdup ("yahoo.png");
112
109
        pEntry->fill = _cd_do_fill_web_entry;
113
110
        pEntry->execute = _cd_do_web_search;