~ubuntu-branches/ubuntu/saucy/cairo-dock-plug-ins/saucy-proposed

« back to all changes in this revision

Viewing changes to systray/src/gtk3/na-tray-child.c

  • Committer: Andrew Starr-Bochicchio
  • Date: 2012-06-23 21:32:42 UTC
  • mfrom: (29.1.1 cairo-dock-plug-ins)
  • Revision ID: a.starr.b@gmail.com-20120623213242-ury15zvhxfpufctb
* New upstream bug-fix release. (LP: #1014804)
* Upstream ChangeLog (3.0.0 -> 3.0.1):
 - Gnome-integration: fixed the time&date command
 - KDE integration: fixed the time&date command
 - Updated previews of dustbin and logout with the new version
 - Updated the version of applets that can be always visible
    (for the new parameters)
 - Clock: numeric view: increased the size of the rectangle if an
    outline is used and modified the default colour
 - Clock: Now with the possibility to have an outline with the digital view
    to see when we don't use any background
 - Used the core option to not force the display of icons in menus
 - Minor fixes in Sound Control's .conf file
 - MusicPlayer: mpris2: metadata: trackid attribute should be of D-Bus
    type 'o'
 - Switcher: fixed a possible crash (division by 0) if the X manager
    couldn't get info from X + removed bMenuVisible
 - Clock: analogic mode: fixed a bug where the date was not displayed
    correctly (with opengl)
 - Clock: numeric mode: set a minimum size for the text: we keep the
    ratio until 12px (under 12px, it's hard to read)
 - Logout: added a fallback method to get the users list if the accounts
    daemon service is not running
 - CMakeLists.txt: fixed a CMake warning (or error?)
* Upstream ChangeLog (3.0.1 -> 3.0.2):
 - AlsaMixer: Fix: double-clicking did nothing if we didn't open the menu
    of the applet
 - DND2Share: Pastebin: Their public API is no longer available -> ported
    to the new API
 - GMenu: Fixed a bug that made sub-menus be too small,
    and therefore have to be scrolled + code cleaning
 - Logout: When the menu is reversed (top dock), select the last item so
    that it's the same as the normal menu (ie, the 'shutdown' item)
 - MusicPlayer: Prevented a warning message: when changing song, we don't
    receive this value: Position (no need to display a warning each time)
 - MusicPlayer: Allow recently played files in the menu (Recent-Files)
 - MusicPlayer: Fixed a bug that prevented the player from being launched
    the 2nd time in some cases
 - MusicPlayer: Added raise and quit methods in the menu when the player is
    in the systray (without that it's hard to display the window
 - MusicPlayer: Used toggle buttons for Shuffle and Repeat properties
 - Recent-Events: If the file doesn't exist, don't display it in the
    'Recent Files' menu
 - Recent-Events: Prevent doubles in the menu list
 - Po: Updated translations (added Croatian)
 - Shortcuts: Fixed a small bug with bookmarks (extra new lines were
    disrupting Thunar)
 - Status-Notifier: Added the marshaller for the XAyatanaNewLabel signal
 - Systray (old): Force the icons size to 24px, to avoid buggy programs to
    display their icon with a wrong size
 - Third-party applets: Reposition their right-click menu, so that it's the
    same as a normal menu (on top of the icon and no scroll needed)
* debian/control:
 - Bumped libgldi-dev version to avoid compilation error
    (cmake check if libgldi has the same version than this package)

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
{
222
222
}
223
223
 
 
224
 
 
225
static void
 
226
na_tray_child_get_preferred_width (GtkWidget* self,
 
227
                                     gint* minimum_width,
 
228
                                     gint* natural_width)
 
229
{
 
230
        *minimum_width = *natural_width = 24;
 
231
}
 
232
static void
 
233
na_tray_child_get_preferred_height (GtkWidget* self,
 
234
                                     gint* minimum_height,
 
235
                                     gint* natural_height)
 
236
{
 
237
        *minimum_height = *natural_height = 24;
 
238
}
 
239
 
224
240
static void
225
241
na_tray_child_class_init (NaTrayChildClass *klass)
226
242
{
235
251
  widget_class->realize = na_tray_child_realize;
236
252
  widget_class->size_allocate = na_tray_child_size_allocate;
237
253
  widget_class->draw = na_tray_child_draw;
 
254
  // we force the size of the icons, because some programs (like xchat) don't respect the _NET_SYSTEM_TRAY_ICON_SIZE property.
 
255
  widget_class->get_preferred_width = na_tray_child_get_preferred_width;
 
256
  widget_class->get_preferred_height = na_tray_child_get_preferred_height;
238
257
}
239
258
 
240
259
GtkWidget *