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

« back to all changes in this revision

Viewing changes to tomboy/src/tomboy-notifications.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe), Matthieu Baerts (matttbe), Didier Roche
  • Date: 2010-09-18 14:20:27 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100918142027-b0zsay70mqxv63l0
Tags: 2.2.0~2-0ubuntu1
[ Matthieu Baerts (matttbe) ]
* New Upstream Version (LP: #638529)
* Fixed a few bugs on LP:
 - Fixed a crash in rainbow view when the cone is completely opened
 - Fixed a crash in rainbow view if the subdock is empty
 - Installed in lib directory by default even in 64bits arch
 - Status-Notifier: fixed few bugs
 - Clock applet:
   - Notify of missed tasks (moved some functions to a new file)
   - Fixed a little memory leak
 - Removed some 'g_print' (LP: #500677: xsession-errors log)
* Updated translations
* debian/control
 - Updated the version of cairo-dock-dev and cairo-dock-core

[ Didier Roche ]
* debian/control: depends on latest libindicator-dev (LP: #637692)

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
CD_APPLET_ON_BUILD_MENU_BEGIN
186
186
        gboolean bClickOnNotes = (pClickedIcon !=  myIcon);
187
187
        
 
188
        GtkWidget *pSubMenu;
 
189
        if (!bClickOnNotes)
 
190
                pSubMenu = CD_APPLET_CREATE_MY_SUB_MENU ();
 
191
        else
 
192
                pSubMenu = CD_APPLET_MY_MENU;
 
193
        
188
194
        // Main Menu
189
195
        CD_APPLET_ADD_IN_MENU_WITH_STOCK (D_("Add a note"), GTK_STOCK_ADD, _cd_tomboy_add_note, CD_APPLET_MY_MENU);
190
196
        
194
200
        }
195
201
        
196
202
        CD_APPLET_ADD_IN_MENU_WITH_STOCK (D_("Reload notes"), GTK_STOCK_REFRESH, _cd_tomboy_reload_notes, CD_APPLET_MY_MENU);
197
 
                
 
203
        
198
204
        if (bClickOnNotes)  // on ne le fait pas pour un clic sur myIcon, car le sous-dock gene le dialogue.
199
205
        {
200
206
                CD_APPLET_ADD_SEPARATOR_IN_MENU (CD_APPLET_MY_MENU);
219
225
                        }
220
226
                }
221
227
        }
222
 
        CD_APPLET_ADD_SEPARATOR_IN_MENU (CD_APPLET_MY_MENU);
223
 
        CD_APPLET_ADD_ABOUT_IN_MENU (CD_APPLET_MY_MENU);
 
228
        if (pSubMenu == CD_APPLET_MY_MENU)
 
229
                CD_APPLET_ADD_SEPARATOR_IN_MENU (CD_APPLET_MY_MENU);
 
230
        CD_APPLET_ADD_ABOUT_IN_MENU (pSubMenu);
224
231
        
225
232
        if (bClickOnNotes && pClickedIcon != NULL)
226
233
                CD_APPLET_LEAVE (CAIRO_DOCK_INTERCEPT_NOTIFICATION);