[Xfce4-commits] r30359 - libexo/trunk/exo

Nick Schermer nick at xfce.org
Mon Jul 20 19:29:14 CEST 2009


Author: nick
Date: 2009-07-20 17:29:14 +0000 (Mon, 20 Jul 2009)
New Revision: 30359

Modified:
   libexo/trunk/exo/exo-toolbars-view.c
Log:
Fix crash in exo code if the ui-manager is not up2date.


Modified: libexo/trunk/exo/exo-toolbars-view.c
===================================================================
--- libexo/trunk/exo/exo-toolbars-view.c	2009-07-20 14:33:52 UTC (rev 30358)
+++ libexo/trunk/exo/exo-toolbars-view.c	2009-07-20 17:29:14 UTC (rev 30359)
@@ -1102,6 +1102,9 @@
   if (view->priv->model == NULL || view->priv->ui_manager == NULL)
     return;
 
+  /* ensure there are no pending updates before getting the widgets */
+  gtk_ui_manager_ensure_update (view->priv->ui_manager);
+
   n_toolbars = exo_toolbars_model_n_toolbars (view->priv->model);
   for (i = 0; i < n_toolbars; ++i)
     {




More information about the Xfce4-commits mailing list