diff options
-rw-r--r-- | x11-toolkits/gtk20/Makefile | 4 | ||||
-rw-r--r-- | x11-toolkits/gtk20/files/patch-svn | 106 |
2 files changed, 108 insertions, 2 deletions
diff --git a/x11-toolkits/gtk20/Makefile b/x11-toolkits/gtk20/Makefile index 6cbfe8230..b261316d8 100644 --- a/x11-toolkits/gtk20/Makefile +++ b/x11-toolkits/gtk20/Makefile @@ -3,12 +3,12 @@ # Whom: Vanilla I. Shu <vanilla@MinJe.com.TW> # # $FreeBSD$ -# $MCom: ports/x11-toolkits/gtk20/Makefile,v 1.109 2007/06/06 16:04:44 mezz Exp $ +# $MCom: ports/x11-toolkits/gtk20/Makefile,v 1.110 2007/06/17 05:17:04 marcus Exp $ # PORTNAME= gtk PORTVERSION= 2.11.3 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/,} \ ftp://ftp.gtk.org/pub/gtk/v2.10/ \ diff --git a/x11-toolkits/gtk20/files/patch-svn b/x11-toolkits/gtk20/files/patch-svn new file mode 100644 index 000000000..e243590b4 --- /dev/null +++ b/x11-toolkits/gtk20/files/patch-svn @@ -0,0 +1,106 @@ +--- gtk/gtkbuilder.c.orig Sun Jun 17 16:01:32 2007 ++++ gtk/gtkbuilder.c Sun Jun 17 16:01:38 2007 +@@ -47,7 +47,7 @@ static void gtk_builder_get_property ( + GValue *value, + GParamSpec *pspec); + static GType gtk_builder_real_get_type_from_name (GtkBuilder *builder, +- const char *typename); ++ const char *type_name); + static gint _gtk_builder_enum_from_string (GType type, const char *string); + + +@@ -214,15 +214,15 @@ _gtk_builder_resolve_type_lazily (const + */ + + static GType +-gtk_builder_real_get_type_from_name (GtkBuilder *builder, const char *typename) ++gtk_builder_real_get_type_from_name (GtkBuilder *builder, const char *type_name) + { + GType gtype; + +- gtype = g_type_from_name (typename); ++ gtype = g_type_from_name (type_name); + if (gtype != G_TYPE_INVALID) + return gtype; + +- return _gtk_builder_resolve_type_lazily (typename); ++ return _gtk_builder_resolve_type_lazily (type_name); + } + + typedef struct +@@ -261,7 +261,7 @@ gtk_builder_get_parameters (GtkBuilder + if (!pspec) + { + g_warning ("Unknown property: %s.%s\n", +- g_typename (object_type), prop->name); ++ g_type_name (object_type), prop->name); + continue; + } + +@@ -303,7 +303,7 @@ gtk_builder_get_parameters (GtkBuilder + else if (!gtk_builder_value_from_string (pspec, prop->data, ¶meter.value)) + { + g_warning ("failed to set property %s.%s to %s", +- g_typename (object_type), prop->name, prop->data); ++ g_type_name (object_type), prop->name, prop->data); + continue; + } + +@@ -537,7 +537,7 @@ apply_delayed_properties (const gchar *w + pspec = g_object_class_find_property (G_OBJECT_CLASS (oclass), + property->name); + if (!pspec) +- g_warning ("Unknown property: %s.%s\n", g_typename (object_type), ++ g_warning ("Unknown property: %s.%s\n", g_type_name (object_type), + property->name); + else + { +@@ -1238,23 +1238,23 @@ _gtk_builder_flags_from_string (GType ty + /** + * gtk_builder_get_type_from_name: + * @builder: a #GtkBuilder +- * @typename: Type name to lookup ++ * @type_name: Type name to lookup + * + * This method is used to lookup a type. It can be implemented in a + * subclass to override the #GType of an object created by the builder. + * +- * Returns: the #GType found for @typename or #G_TYPE_INVALID if no ++ * Returns: the #GType found for @type_name or #G_TYPE_INVALID if no + * type was found + * + * Since 2.12 + */ + GType +-gtk_builder_get_type_from_name (GtkBuilder *builder, const gchar *typename) ++gtk_builder_get_type_from_name (GtkBuilder *builder, const gchar *type_name) + { + g_return_val_if_fail (GTK_IS_BUILDER (builder), G_TYPE_INVALID); +- g_return_val_if_fail (typename != NULL, G_TYPE_INVALID); ++ g_return_val_if_fail (type_name != NULL, G_TYPE_INVALID); + +- return GTK_BUILDER_GET_CLASS (builder)->get_type_from_name (builder, typename); ++ return GTK_BUILDER_GET_CLASS (builder)->get_type_from_name (builder, type_name); + } + + /** +--- gtk/gtkbuilder.h.orig Sun Jun 17 16:02:12 2007 ++++ gtk/gtkbuilder.h Sun Jun 17 16:02:23 2007 +@@ -60,7 +60,7 @@ struct _GtkBuilderClass + GObjectClass parent_class; + + GType (* get_type_from_name) (GtkBuilder *builder, +- const char *typename); ++ const char *type_name); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); +@@ -103,7 +103,7 @@ void gtk_builder_set_translation + const gchar *domain); + const gchar* gtk_builder_get_translation_domain (GtkBuilder *builder); + GType gtk_builder_get_type_from_name (GtkBuilder *builder, +- const char *typename); ++ const char *type_name); + + gboolean gtk_builder_value_from_string (GParamSpec *pspec, + const gchar *string, |