Commit cdcad135 authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

Fixed sources to build with gcc 2.95 (bug 406504)


	* Fixed sources to build with gcc 2.95 (bug 406504)


svn path=/trunk/; revision=1105
parent e7634f69
2006-02-15 Jens Granseuer <jensgr@gmx.net>
* Fixed sources to build with gcc 2.95 (bug 406504)
2006-02-13 Tristan Van Berkom <tvb@gnome.org>
* configure.in, NEWS: Rolling 3.1.5
......
......@@ -49,6 +49,21 @@ AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the gettext package.])
AM_GLIB_GNU_GETTEXT
dnl ================================================================
dnl va_copy.
dnl ================================================================
AC_MSG_CHECKING([how to copy va_list])
AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; va_copy(ap1, ap2);],
AC_MSG_RESULT([va_copy]),
[ AH_TEMPLATE([va_copy], [define if va_copy is not available])
AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; __va_copy(ap1, ap2);],
[ AC_DEFINE([va_copy], [__va_copy])
AC_MSG_RESULT([__va_copy])],
[ AC_DEFINE([va_copy(dest,src)], [memcpy(&dest,&src,sizeof(va_list))])
AC_MSG_RESULT([memcpy])]
)
])
dnl ================================================================
dnl Check for gtk-doc
dnl ================================================================
......
......@@ -990,11 +990,10 @@ flag_toggled_direct (GtkCellRendererToggle *cell,
GladeEditorProperty *eprop)
{
GtkTreeIter iter;
guint new_value;
guint new_value = 0;
gboolean selected;
guint value;
value = new_value =0;
gint flag_num=0;
guint value = 0;
gint flag_num = 0;
GFlagsClass *klass;
GladeEPropFlags *eprop_flags = GLADE_EPROP_FLAGS(eprop);
......
......@@ -293,9 +293,10 @@ glade_palette_box_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
/* Allocate real estate to children */
for (l = box->priv->children; l; l = l->next)
{
child = (GladePaletteBoxChild *) (l->data);
gint horizontal_space_remaining;
child = (GladePaletteBoxChild *) (l->data);
if (GTK_WIDGET_VISIBLE (child->widget))
{
child_allocation.x = x;
......
......@@ -849,7 +849,7 @@ glade_property_class_make_gvalue_from_string (GladePropertyClass *property_class
}
else if (G_IS_PARAM_SPEC_VALUE_ARRAY (property_class->pspec))
{
GValueArray *value_array = g_value_array_new (0);;
GValueArray *value_array = g_value_array_new (0);
GValue str_value = {0, };
gint i;
......
......@@ -1746,15 +1746,17 @@ glade_util_url_show_unix (const gchar *url)
{
gchar *args[128] = { 0, };
guint n = 0;
gchar *string;
gchar fallback_error[64] = "Ok";
gboolean success;
args[n++] = (gchar*) browsers[i].prg;
if (browsers[i].arg1)
args[n++] = (gchar*) browsers[i].arg1;
gchar *string = g_strconcat (browsers[i].prefix, url, browsers[i].postfix, NULL);
string = g_strconcat (browsers[i].prefix, url, browsers[i].postfix, NULL);
args[n] = string;
gchar fallback_error[64] = "Ok";
gboolean success;
if (!browsers[i].asyncronous) /* start syncronously and check exit code */
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment