~3v1n0/unity/fix-load-icon-crash-926658

« back to all changes in this revision

Viewing changes to panel/PanelIndicatorEntryView.cpp

  • Committer: Marco Trevisan (Treviño)
  • Date: 2012-08-10 12:35:24 UTC
  • mfrom: (2509.1.36 unity)
  • Revision ID: mail@3v1n0.net-20120810123524-l41egcjcmt778uzc
Merging with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
429
429
  unsigned int width = 0;
430
430
  unsigned int icon_width = 0;
431
431
  unsigned int height = panel::Style::Instance().panel_height;
432
 
  unsigned int text_width = 0;
433
432
 
434
433
  // First lets figure out our size
435
434
  if (pixbuf && IsIconVisible())
484
483
    pango_layout_context_changed(layout);
485
484
 
486
485
    pango_layout_get_extents(layout, nullptr, &log_rect);
487
 
    text_width = log_rect.width / PANGO_SCALE;
 
486
    unsigned int text_width = log_rect.width / PANGO_SCALE;
488
487
 
489
488
    if (icon_width)
490
489
      width += spacing_;