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

« back to all changes in this revision

Viewing changes to Indicator-Generic/src/applet-indicator3.c

  • Committer: Matthieu Baerts
  • Date: 2013-10-04 13:11:52 UTC
  • mfrom: (1.1.33)
  • Revision ID: matttbe@gmail.com-20131004131152-lig9ijrvkc0g00w6
Tags: 3.3.0-0ubuntu1
* New upstream release.
* Detailed Upstream ChangeLog (beta 2 -> release)
  - Dbus: don't notify of startup if the applet is already controling a
    window
  - Dialogs: tooltip view: fixed the position of the widget inside the
    dialog when it's placed on top of the screen
  - Folder: watch for drop events onto the docks only
  - GMenu:
    - Apps: set the desktop environment to correctly exclude apps
    - Search: When there is no result, display 'Launch this command'
    - Search: launch app: do not restrict to the left click
    - Search: match: display name: locate a substring instead of compare
      the first chars
  - Indicator-Generic: forced the 'data' to be a GldiModuleInstance
  - logout: select shutdown menu item: do not create a list and iter all
    menu items, just save the pointer
  - Messaging Menu: Indicator3: detach the icon at startup: the icon is
    inserted when the entry will be added
  - Messaging Menu: with old versions of libindicator: fixed tiny memory
    leaks
  - po: updated translations
  - Switcher: correctly update the icon by listening more signals
  - Switcher: fixed the drawing of the desktop name in the desklet when
    it's larger than the desklet
  - Terminal: when dropped something in the terminal, take the data and
    not only the text + give the focus just after
  - All: menu functions have been renamed in libgldi
  - All: remove useless g_print
* Some bugs have been fixed:
  - logout: UPower: invalid fastbin entry LP: #1212981
  - logout: Use logind for suspend/hibernate/poweroff/reboot LP: #1175810
  - keyboard: cairo-dock crashes on keyboard layout swtcher LP: #668061
  - keyboard: Cairo-dock is unable to get CAPS Lock and NumLck values
    LP: #476842
  - quick-browser: Error Message LP: #660261
  - recent-events: Move from zeitgeist-1.0 to zeitgeist-2.0 LP: #1197569
* debian/control: bumped Cairo-Dock (core) version

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        g_free (cName);
34
34
}
35
35
 
36
 
static void _accessible_desc_update (G_GNUC_UNUSED IndicatorObject *pIndicator, IndicatorObjectEntry *pEntry, gpointer data)
 
36
static void _accessible_desc_update (G_GNUC_UNUSED IndicatorObject *pIndicator, IndicatorObjectEntry *pEntry, GldiModuleInstance *myApplet)
37
37
{
38
 
        GldiModuleInstance *myApplet = data;
39
 
        cd_indicator3_accessible_desc_update (pEntry, myConfig.defaultTitle, data);
 
38
        cd_indicator3_accessible_desc_update (pEntry, myConfig.defaultTitle, myApplet);
40
39
}
41
40
 
42
 
static void _entry_added (IndicatorObject *pIndicator, IndicatorObjectEntry *pEntry, gpointer data)
 
41
static void _entry_added (IndicatorObject *pIndicator, IndicatorObjectEntry *pEntry, GldiModuleInstance *myApplet)
43
42
{
44
 
        GldiModuleInstance *myApplet = data;
45
43
        cd_debug ("Entry Added: %s", myConfig.cIndicatorName);
46
44
        g_return_if_fail (myData.pEntry == NULL && pEntry != NULL); // should not happen...
47
45
        // only one entry (or should we support more than one entry => ex: global-menu?)
56
54
        cd_indicator3_notify_visibility (pImage, G_CALLBACK (_icon_updated), myApplet);
57
55
 
58
56
        cd_indicator3_check_visibility (pImage, myApplet);
59
 
        _accessible_desc_update (pIndicator, pEntry, data);
 
57
        _accessible_desc_update (pIndicator, pEntry, myApplet);
60
58
}
61
59
 
62
 
static void _entry_removed (IndicatorObject *pIndicator, IndicatorObjectEntry *pEntry, gpointer data)
 
60
static void _entry_removed (IndicatorObject *pIndicator, IndicatorObjectEntry *pEntry, GldiModuleInstance *myApplet)
63
61
{
64
62
        // should not happen so often... except at the end.
65
 
        GldiModuleInstance *myApplet = data;
66
63
        cd_debug ("Entry Removed: %s", myConfig.cIndicatorName);
67
64
        
68
65
        // the same entry as before, we can remove the previous one
81
78
        }
82
79
}
83
80
 
84
 
static void _destroy (IndicatorObject *pIndicator, IndicatorObjectEntry *pEntry, gpointer data)
 
81
static void _destroy (IndicatorObject *pIndicator, IndicatorObjectEntry *pEntry, GldiModuleInstance *myApplet)
85
82
{
86
 
        _entry_removed (pIndicator, pEntry, data);
 
83
        _entry_removed (pIndicator, pEntry, myApplet);
87
84
}
88
85
 
89
86
void cd_indicator_generic_indicator_reload (IndicatorObject *pIndicator, IndicatorObjectEntry *pEntry, gpointer data)