~shnatsel/unity/old-school-dash

« back to all changes in this revision

Viewing changes to src/PanelTray.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-04-14 22:03:42 UTC
  • mfrom: (1.1.41 upstream)
  • Revision ID: james.westby@ubuntu.com-20110414220342-4kp036kzlljxxx23
Tags: 3.8.8-0ubuntu1
* New upstream release.
  - Empty desktop after login (LP: #687660)
  - compiz crashed with SIGSEGV in nux::Area::InitiateResizeLayout()
    (LP: #757709)
  - compiz crashed on initial load of Java Citrix Client/Inkscape in
    PrivateWindow::processMap() (LP: #758307)
  - Sometimes dragging down from the panel just stops working (LP: #750155)
  - Ensure Unity prioritises icon loading from Unity-icon-theme
    (LP: #750471)
  - text truncated in Dash. Empty search from Applications or Files lense
    returns “Your search did not” due to cut off label (LP: #757362)
  - should list PlacesGroup.cpp in POTFILES.in (LP: #757663)
  - Launcher intellhide stuck after edge reveal (LP: #757810)
  - unity-preferences doesn't load translations (LP: #759682)
  - dynamic quicklists are not working (LP: #729074)
  - with second monitor, first monitor does not show nautilus
    application/global menu when displaying desktop (LP: #743149)
  - Launcher - The Workspace, File Lens, App Lens and Trash Launcher icons
    need to be rendered correctly (LP: #745555)
  - the launcher background gets dimmed after icons dnd (LP: #747304)
  - Numpad 'Enter' does not work on unity launcher when navigating through
    keyboard (LP: #760003)
  - Launcher shouldn't hover when being in the dash (LP: #760770)
  - Launcher displays key shortcuts while holding Super while the dash is
    open but the shortcuts are unfunctional (LP: #760728)
  - Running/active indicators point to space between launcher icons for
    folded icons (LP: #703067)
  - user-trash.svg and user-trash-full.svg not lens grayscale versions
    (LP: #741804)
  - code-cleanup: unregistered any established ubus-interests (LP: #757588)
  - dropdown box in places search bar does not resize when font size changes
    (LP: #759763)
  - [FFE] Centered layout for expo plugin (LP: #754689)
  - Unity launcher icons tooltips do not disappear when swiching workspaces
    (LP: #744795)
  - Dash - Update Dash scroll bar (LP: #750374)
  - Letters cut off at the end in the applications window  (LP: #753083)
* debian/control:
  - build-dep on grail/geis with version bumped
* 01_dont_dep_on_latest_geis_grail.patch:
  - not needed anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
PanelTray::PanelTray ()
25
25
: _n_children (0),
 
26
  _tray (NULL),
26
27
  _last_x (0),
27
 
  _last_y (0)
 
28
  _last_y (0),
 
29
  _tray_icon_added_id (0)
28
30
{
29
31
  _settings = g_settings_new (SETTINGS_NAME);
30
32
  _whitelist = g_settings_get_strv (_settings, "systray-whitelist");
50
52
                                    GTK_ORIENTATION_HORIZONTAL,
51
53
                                    (NaTrayFilterCallback)FilterTrayCallback,
52
54
                                    this);
53
 
    g_signal_connect (na_tray_get_manager (_tray), "tray_icon_removed",
54
 
                      G_CALLBACK (PanelTray::OnTrayIconRemoved), this);
 
55
    _tray_icon_added_id = g_signal_connect (na_tray_get_manager (_tray), "tray_icon_removed",
 
56
                                            G_CALLBACK (PanelTray::OnTrayIconRemoved), this);
55
57
 
56
58
    gtk_container_add (GTK_CONTAINER (_window), GTK_WIDGET (_tray));
57
59
    gtk_widget_show (GTK_WIDGET (_tray));
62
64
 
63
65
PanelTray::~PanelTray ()
64
66
{
 
67
  if (_tray)
 
68
  {
 
69
    g_signal_handler_disconnect (na_tray_get_manager (_tray), _tray_icon_added_id);
 
70
    g_object_unref (_tray);
 
71
    _tray = NULL;
 
72
  }
 
73
 
 
74
  g_idle_remove_by_data (this);
 
75
 
65
76
  if (_tray_expose_id)
66
77
    g_signal_handler_disconnect (_window, _tray_expose_id);
67
 
  g_idle_remove_by_data (this);
68
78
  
 
79
  gtk_widget_destroy (_window);
69
80
  g_strfreev (_whitelist);
70
81
  g_object_unref (_settings);
71
82
}
93
104
void
94
105
PanelTray::Sync ()
95
106
{
96
 
  SetMinMaxSize ((_n_children * 24) + (PADDING * 2), 24);
97
 
  QueueRelayout ();
98
 
  QueueDraw ();
 
107
  if (_tray)
 
108
  {
 
109
    SetMinMaxSize ((_n_children * 24) + (PADDING * 2), 24);
 
110
    QueueRelayout ();
 
111
    QueueDraw ();
 
112
  }
99
113
}
100
114
 
101
115
gboolean