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

« back to all changes in this revision

Viewing changes to powermanager/src/powermanager-init.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:
91
91
                {
92
92
                        if (myConfig.bHideNotOnBattery && ! myData.bOnBattery)
93
93
                        { // hide the icon when not on battery and if needed
94
 
                                cairo_dock_detach_icon_from_dock (myIcon, myDock);
 
94
                                gldi_icon_detach (myIcon);
95
95
                                myData.bIsHidden = TRUE;
96
96
                        }
97
97
                        else if (myData.bIsHidden)
98
98
                        {
99
 
                                cairo_dock_insert_icon_in_dock (myIcon, myDock, CAIRO_DOCK_ANIMATE_ICON);
100
 
                                ///cairo_dock_redraw_container (CAIRO_CONTAINER (myDock));
 
99
                                gldi_icon_insert_in_container (myIcon, myContainer, CAIRO_DOCK_ANIMATE_ICON);
101
100
                                myData.bIsHidden = FALSE;
102
101
                        }
103
102
                }