epiphany r7991 - trunk/lib/egg



Author: jensg
Date: Tue Feb 26 21:12:46 2008
New Revision: 7991
URL: http://svn.gnome.org/viewvc/epiphany?rev=7991&view=rev

Log:
Declare variable at the beginning of the function to fix build with
compilers that only understand C89. Bug #518890.


Modified:
   trunk/lib/egg/egg-toolbar-editor.c

Modified: trunk/lib/egg/egg-toolbar-editor.c
==============================================================================
--- trunk/lib/egg/egg-toolbar-editor.c	(original)
+++ trunk/lib/egg/egg-toolbar-editor.c	Tue Feb 26 21:12:46 2008
@@ -174,10 +174,12 @@
 egg_toolbar_editor_set_model (EggToolbarEditor *t,
 			      EggToolbarsModel *model)
 {
+  EggToolbarEditorPrivate *priv;
+
   g_return_if_fail (EGG_IS_TOOLBAR_EDITOR (t));
   g_return_if_fail (model != NULL);
 
-  EggToolbarEditorPrivate *priv = t->priv;
+  priv = t->priv;
 
   if (priv->model)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]