~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-backend-recent.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:
62
62
                        GdkPixbuf *pixbuf = gtk_recent_info_get_icon (pInfo, myDialogs.dialogTextDescription.iSize + 2);
63
63
                        if (pixbuf != NULL)
64
64
                        {
65
 
                                cairo_t* pSourceContext = cairo_dock_create_context_from_container (CAIRO_CONTAINER (g_pMainDock));
66
65
                                double fImageWidth, fImageHeight;
67
66
                                pEntry->pIconSurface = cairo_dock_create_surface_from_pixbuf (pixbuf,
68
 
                                        pSourceContext,
69
67
                                        1.,
70
68
                                        myDialogs.dialogTextDescription.iSize,  // width
71
69
                                        myDialogs.dialogTextDescription.iSize,  // height
72
70
                                        0,  // modifier
73
71
                                        &fImageWidth, &fImageHeight,
74
72
                                        NULL, NULL);
75
 
                                cairo_destroy (pSourceContext);
76
73
                                g_object_unref (pixbuf);
77
74
                                return TRUE;
78
75
                        }
88
85
 
89
86
static void _cd_do_launch_file (CDEntry *pEntry)
90
87
{
91
 
        g_print ("%s (%s)\n", __func__, pEntry->cPath);
 
88
        cd_debug ("%s (%s)\n", __func__, pEntry->cPath);
92
89
        cairo_dock_fm_launch_uri (pEntry->cPath);
93
90
}
94
91
 
95
92
static void _cd_do_launch_file_with_given_app (CDEntry *pEntry)
96
93
{
97
 
        g_print ("%s (%s)\n", __func__, pEntry->cPath);
 
94
        cd_debug ("%s (%s)\n", __func__, pEntry->cPath);
98
95
        cairo_dock_launch_command (pEntry->cPath);
99
96
}
100
97
 
101
98
static void _cd_do_show_file_location (CDEntry *pEntry)
102
99
{
103
 
        g_print ("%s (%s)\n", __func__, pEntry->cPath);
 
100
        cd_debug ("%s (%s)\n", __func__, pEntry->cPath);
104
101
        gchar *cPathUp = g_path_get_dirname (pEntry->cPath);
105
102
        g_return_if_fail (cPathUp != NULL);
106
103
        cairo_dock_fm_launch_uri (cPathUp);
114
111
 
115
112
static GList *_cd_do_list_recent_sub_entries (CDEntry *pEntry, int *iNbEntries)
116
113
{
117
 
        g_print ("%s (%s)\n", __func__, pEntry->cPath);
 
114
        cd_debug ("%s (%s)\n", __func__, pEntry->cPath);
118
115
        CDEntry *pSubEntry;
119
116
        GList *pEntries = NULL;
120
117
        int i = 0;
162
159
 
163
160
static GList* search (const gchar *cText, int iFilter, gboolean bSearchAll, int *iNbEntries)
164
161
{
165
 
        g_print ("%s (%s)\n", __func__, cText);
 
162
        cd_debug ("%s (%s)\n", __func__, cText);
166
163
        
167
164
        GList *pEntries = NULL;
168
165
        CDEntry *pEntry;