~ubuntu-branches/ubuntu/vivid/cairo-dock-plug-ins/vivid

« back to all changes in this revision

Viewing changes to Doncky/src/applet-notifications.c

  • Committer: Matthieu Baerts
  • Date: 2013-08-27 14:46:47 UTC
  • mto: (53.1.4 cairo-dock-plug-ins)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: matttbe@gmail.com-20130827144647-wm0kyawa8vcg0cso
Tags: upstream-3.2.99.beta1.1~20130827~bzr2928
ImportĀ upstreamĀ versionĀ 3.2.99.beta1.1~20130827~bzr2928

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
//~ #include <glib.h>
32
32
#include <glib/gstdio.h>
33
33
 
34
 
gboolean _check_size_is_constant (CairoDockModuleInstance *myApplet, const gchar *cFilePath)
 
34
gboolean _check_size_is_constant (GldiModuleInstance *myApplet, const gchar *cFilePath)
35
35
{
36
36
        int iSize = cairo_dock_get_file_size (cFilePath);
37
37
        gchar *cCommand = g_strdup_printf ("ping 127.0.0.1 -i 0.2 -c 2"); // On fait un temps d'arret de 200ms
45
45
        return bConstantSize;
46
46
}
47
47
 
48
 
gboolean _new_xml_to_conf (CairoDockModuleInstance *myApplet, gchar *cReceivedData)
 
48
gboolean _new_xml_to_conf (GldiModuleInstance *myApplet, gchar *cReceivedData)
49
49
{
50
50
        gboolean bContinue = FALSE;
51
51
        
206
206
        else
207
207
        {
208
208
                cd_debug ("DONCKY-debug : It doesn't seem to be a valid XML."); 
209
 
                cairo_dock_remove_dialog_if_any (myIcon);
210
 
                cairo_dock_show_temporary_dialog_with_icon (D_("It doesn't seem to be a valid XML file."),
 
209
                gldi_dialogs_remove_on_icon (myIcon);
 
210
                gldi_dialog_show_temporary_with_icon (D_("It doesn't seem to be a valid XML file."),
211
211
                        myIcon,
212
212
                        myContainer,
213
213
                        3000, // Suffisant 
409
409
                                        g_free (cNodeContent);
410
410
                                }
411
411
                                
412
 
                                cairo_dock_reload_module_instance (myApplet, TRUE); // TRUE <=> read conf file
 
412
                                gldi_object_reload (GLDI_OBJECT(myApplet), TRUE); // TRUE <=> read conf file
413
413
                        }                               
414
414
                }       
415
415
                cairo_dock_close_xml_file (pXmlFile);