~jgonzalezdr/cairo-dock-plug-ins/suspend-workaround-applet_3.3

« back to all changes in this revision

Viewing changes to clock/src/applet-init.c

  • Committer: Fabrice Rey
  • Date: 2013-05-19 17:26:37 UTC
  • Revision ID: fabounet03@gmail.com-20130519172637-cc4oyb5q3z0jd139
Here is quite a huge commit; it's "just" to update to the new core API

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        pInterface->save_custom_widget = cd_clock_save_custom_widget;
50
50
CD_APPLET_DEFINE_END
51
51
 
52
 
static gboolean _cd_check_new_minute (CairoDockModuleInstance *myApplet)
 
52
static gboolean _cd_check_new_minute (GldiModuleInstance *myApplet)
53
53
{
54
54
        myData.iSidUpdateClock = g_timeout_add_seconds (60,
55
55
                (GSourceFunc) cd_clock_update_with_time,
58
58
        return FALSE;
59
59
}
60
60
 
61
 
static void _cd_launch_timer (CairoDockModuleInstance *myApplet)
 
61
static void _cd_launch_timer (GldiModuleInstance *myApplet)
62
62
{
63
63
        cd_clock_update_with_time (myApplet); // should update myData.currentTime
64
64
 
75
75
                myData.iSidUpdateClock = g_timeout_add_seconds (1, (GSourceFunc) cd_clock_update_with_time, (gpointer) myApplet);
76
76
}
77
77
 
78
 
static void _on_resuming (DBusGProxy *proxy_item, CairoDockModuleInstance *myApplet)
 
78
static void _on_resuming (DBusGProxy *proxy_item, GldiModuleInstance *myApplet)
79
79
{
80
80
        cd_debug ("Refresh timer after resuming");
81
81
        if (! myConfig.bShowSeconds) // not interesting if the hour is updated each second
86
86
        }
87
87
}
88
88
 
89
 
static void _cd_connect_to_resuming_signal (CairoDockModuleInstance *myApplet)
 
89
static void _cd_connect_to_resuming_signal (GldiModuleInstance *myApplet)
90
90
{
91
91
        myData.pProxyResumingUPower = cairo_dock_create_new_system_proxy (
92
92
                "org.freedesktop.UPower",
110
110
                G_CALLBACK (_on_resuming), myApplet, NULL);
111
111
}
112
112
 
113
 
static void _cd_disconnect_from_resuming_signal (CairoDockModuleInstance *myApplet)
 
113
static void _cd_disconnect_from_resuming_signal (GldiModuleInstance *myApplet)
114
114
{
115
115
        if (myData.pProxyResumingUPower)
116
116
        {