~ubuntu-branches/ubuntu/maverick/unity/maverick

« back to all changes in this revision

Viewing changes to unity-private/launcher/quicklist-controller.vala

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-09-17 14:02:54 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20100917140254-6cbue12klia2f07l
Tags: 0.2.40-0ubuntu1
* New upstream release:
  - Fix inactive menus accessible (LP: #604505)
  - Fix some more memory leaks (LP: #604777, #621690, #628144)
  - Fix weird behaviors of quicklist (LP: #617339)
  - Provide an "open this folder" button (LP: #633201)
  - Hidden menu causing gap (LP: #600191)
  - Cannot go fullscreen for flash videos (LP: #631381)
  - Can't access menu items from the keyboard (LP: #636728)
  - Don't register for MDRAGs since they aren't used (LP: #632613)
  - Don't run indicator on special launchers (LP: #627488)
  - Center arrows position in folded launcher tiles (LP: #633084)
  - Launcher icons first appear as white upon login (LP: #601093)
  - Removes jittering when rubber band is in use on the launcher (LP: #632991)
  - Mutter restarts on closing almost any application (LP: #634701)
  - Can't launch apps like synaptic with root privileges from launch bar
    (LP: #599298)
  - Launcher tile dragging shouldn't be masked (LP: #631443)
  - Fix Carousel-ed icons have distorted perspective (LP: #607515)
  - Use no longer sync call (LP: #620011)
* update debian/libunity0.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
      if (Unity.global_shell is Unity.Shell)
162
162
        Unity.global_shell.remove_fullscreen_request (this);
163
163
 
164
 
      if (state == QuicklistControllerState.CLOSED) return;
 
164
      if (state == QuicklistControllerState.CLOSED)
 
165
        {
 
166
          return;
 
167
        }
165
168
      if (menu == null)
166
169
        {
167
170
          new_menu ();
168
 
          warning ("state change called on menu when menu does not exist");
169
171
        }
170
172
 
171
173
      if (state == QuicklistControllerState.LABEL)
190
192
          menu.compute_style_textures ();
191
193
          menu.set_expansion_size_factor (0.0f);
192
194
          menu.set_anchor_position (x + w - 4, y + h/2.0f, 0);
 
195
 
193
196
        }
194
197
      else if (state == QuicklistControllerState.MENU)
195
198
        {
196
199
          if (Unity.global_shell is Unity.Shell)
197
200
            Unity.global_shell.add_fullscreen_request (this);
198
201
 
 
202
          if(menu.get_num_items() == 0)
 
203
            {
 
204
              // It can happen that the quicklist menu is requested and the menu was not previously filled with a label. 
 
205
              // In this case we fill the menu with the label first.
 
206
              string label = attached_controller.name;
 
207
              var menuitem = new QuicklistMenuItem.with_label (label);
 
208
              menuitem.reactive = false;
 
209
              menu.append (menuitem, false);
 
210
            }
 
211
            
199
212
          menu.close_on_leave = false;
200
213
          menu.set_detect_clicks (true);
201
214
          // grab the top menu