~om26er/ubuntu/natty/unity/unity-fix-769703-3

« back to all changes in this revision

Viewing changes to src/PanelIndicatorObjectEntryView.cpp

  • Committer: Didier Roche
  • Date: 2011-05-26 16:15:21 UTC
  • mfrom: (100.1.56 upstream)
  • Revision ID: didier.roche@canonical.com-20110526161521-m3f6tg1xb0g1vn0k
* New upstream bug-fix release.
  - In a dual monitor setup with different resolutions, Unity places windows
    in the "dead zone" (LP: #752098)
  - Left pixel of launcher is not clickable on session start (LP: #758026)
  - unity crashed with AttributeError in reset_unity_compiz_profile(): 'str'
    object has no attribute 'get_string' (LP: #737320)
  - unity --reset crashes with NameError (LP: #774280)
  - Bottom icon on launcher tilts when it maybe shouldn't if icons fill
    launcher nearly exactly (LP: #728949)
  - Dodge active window - launcher should not show when modal dialog is
    opened (LP: #718185)
  - Unity maximizes windows that don't support resize on launch (LP: #769781)
  - compiz crashed with SIGSEGV in sigc::signal_base::impl() (LP: #762801)
  - inactive menus becomes brighter on sub-sequent clicks (LP: #733740)
  - Unity crashes when dynamic quicklist dbusmenu contains a hidden menuitem.
    (LP: #759174)
  - Opening quicklist with launcher keynav returns focus to previous window
    (LP: #750781)
* debian/patches/01_add_scp_to_systray.patch:
  - remove, upstream now

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
  _on_font_changed_connection = g_signal_connect (gtk_settings_get_default (), "notify::gtk-font-name", (GCallback) &PanelIndicatorObjectEntryView::OnFontChanged, this);
50
50
 
51
51
  InputArea::OnMouseDown.connect (sigc::mem_fun (this, &PanelIndicatorObjectEntryView::OnMouseDown));
 
52
  InputArea::OnMouseUp.connect (sigc::mem_fun (this, &PanelIndicatorObjectEntryView::OnMouseUp));
52
53
  InputArea::OnMouseWheel.connect (sigc::mem_fun (this, &PanelIndicatorObjectEntryView::OnMouseWheel));
53
54
 
54
55
  _on_panelstyle_changed_connection = PanelStyle::GetDefault ()->changed.connect (sigc::mem_fun (this, &PanelIndicatorObjectEntryView::Refresh));
82
83
                      GetAbsoluteGeometry ().y + PANEL_HEIGHT,
83
84
                      time (NULL),
84
85
                      nux::GetEventButton (button_flags));
 
86
  } else {
 
87
          Refresh();
85
88
  }
86
89
}
87
90
 
88
91
void
 
92
PanelIndicatorObjectEntryView::OnMouseUp (int x, int y, long button_flags, long key_flags)
 
93
{
 
94
  Refresh();
 
95
}
 
96
 
 
97
void
89
98
PanelIndicatorObjectEntryView::OnMouseWheel (int x, int y, int delta, unsigned long mouse_state, unsigned long key_state)
90
99
{
91
100
  _proxy->Scroll (delta);
242
251
  x = _padding;
243
252
  y = 0;
244
253
 
245
 
  if (_proxy->GetPixbuf () && _proxy->icon_visible)
 
254
  if (pixbuf && _proxy->icon_visible)
246
255
  {
247
256
    gdk_cairo_set_source_pixbuf (cr, pixbuf, x, (int)((height - gdk_pixbuf_get_height (pixbuf))/2));
248
257
    cairo_paint_with_alpha (cr, _proxy->icon_sensitive ? 1.0 : 0.5);
249
258
 
250
259
    x += icon_width + SPACING;
251
 
 
252
 
    g_object_unref (pixbuf);
253
260
  }
254
261
 
255
262
  if (label && _proxy->label_visible)
311
318
  refreshed.emit (this);
312
319
  if (label)
313
320
    g_free (label);
 
321
  if (pixbuf)
 
322
    g_object_unref (pixbuf);
314
323
}
315
324
 
316
325
static void