~ubuntu-branches/ubuntu/lucid/netbook-launcher/lucid

« back to all changes in this revision

Viewing changes to src/nl-window.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-04-01 17:59:12 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20100401175912-i0y046m14lw2cwr0
Tags: 1:2.1.16-0ubuntu1
* New upstream release:
  - Prevent crash in keyboard navigation into System category. (Jan Arne
    Petersen) (LP: #465548)
  - Works around a strange behaviour in the delivery of the
    child-focus-changed signal.a
  - Wrong clutter handling by opengl driver fallback to -efl launcher
    (LP: #467474)
  - Add right-click in all category menus and show Change Desktop Background
    menu like in Favorites. (LaserJock) (LP: #455143)
  - Fix keyboard navication in favourite view (Jan Arne Petersen)
    (LP: #472999)
  - Put the home, destkop, download and examples folder first (LP: #538485)

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
  priv->stage = gtk_clutter_embed_get_stage
193
193
                (GTK_CLUTTER_EMBED (priv->gtkclutter));
194
194
 
 
195
  // Given sufficiently poor OpenGL drivers getting the stage
 
196
  // can fail.  In this case, there's a good chance that further
 
197
  // OpenGL calls will fail, sometimes spectacularly.
 
198
  // See LP: #467474 for an example.
 
199
  g_return_if_fail (CLUTTER_IS_STAGE (priv->stage));
 
200
 
195
201
  /* Set NlWidget's direction */
196
202
  direction = gtk_widget_get_default_direction ();
197
203
  ctk_actor_set_default_direction (direction);
370
376
  return window;
371
377
}
372
378
 
 
379
gboolean
 
380
nl_window_is_valid (GtkWidget *window)
 
381
{
 
382
  // This is not all of the state required to declare a window valid, but
 
383
  // it's enough to LP: #467474
 
384
  return CLUTTER_IS_STAGE (NL_WINDOW (window)->priv->stage);
 
385
}
 
386
 
373
387
/*
374
388
 * Private methods
375
389
 */