~ubuntu-branches/ubuntu/maverick/gnubiff/maverick

« back to all changes in this revision

Viewing changes to src/ui-applet-systray.cc

  • Committer: Bazaar Package Importer
  • Author(s): Emmet Hikory
  • Date: 2008-02-14 02:04:54 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20080214020454-tw1yrsvexiimjo52
Tags: 2.2.9-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Update the libfam-dev build-dep to libgamin-dev instead.
  - Set Ubuntu maintainer

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
// ========================================================================
18
18
//
19
19
// File          : $RCSfile: ui-applet-systray.cc,v $
20
 
// Revision      : $Revision: 1.2.2.2 $
21
 
// Revision date : $Date: 2007/09/08 14:57:58 $
 
20
// Revision      : $Revision: 1.2.2.3 $
 
21
// Revision date : $Date: 2008/01/12 14:49:45 $
22
22
// Author(s)     : Nicolas Rougier, Robert Sowada
23
23
// Short         : 
24
24
//
99
99
void 
100
100
AppletSystray::resize (guint width, guint height)
101
101
{
102
 
        // Get image's current size
103
 
        guint ic_width = 0, ic_height = 0;
104
 
        get_image_size ("image", ic_width, ic_height);
105
 
 
106
102
        // Do we need to have the image rescaled?
107
 
        if (((ic_width != width) || (ic_height > height))
108
 
                && ((ic_width > width) || (ic_height != height))) {
109
 
                widget_max_width_ = width;
 
103
        if ((width != widget_max_width_) || (height != widget_max_height_)) {
 
104
                widget_max_width_ = width;
110
105
                widget_max_height_ = height;
111
106
                update (); 
112
107
        }