Hello community, here is the log from the commit of package mx for openSUSE:Factory checked in at Tue Jul 19 14:30:41 CEST 2011.
-------- --- mx/mx.changes 2011-06-04 20:22:51.000000000 +0200 +++ /mounts/work_src_done/STABLE/mx/mx.changes 2011-07-18 10:10:52.000000000 +0200 @@ -1,0 +2,6 @@ +Mon Jul 18 10:10:21 CEST 2011 - [email protected] + +- Add mx-no-G_CONST_RETURN.patch to stop using G_CONST_RETURN which + is deprecated. This fixes the build of the-board. + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- mx-no-G_CONST_RETURN.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mx.spec ++++++ --- /var/tmp/diff_new_pack.nwRgMi/_old 2011-07-19 14:29:04.000000000 +0200 +++ /var/tmp/diff_new_pack.nwRgMi/_new 2011-07-19 14:29:04.000000000 +0200 @@ -19,12 +19,14 @@ Name: mx Version: 1.2.0 -Release: 1 +Release: 2 License: LGPLv2.1 Summary: Clutter-based Toolkit Url: http://www.clutter-project.org/ Group: System/Libraries Source0: %{name}-%{version}.tar.bz2 +# PATCH-FIX-UPSTREAM mx-no-G_CONST_RETURN.patch bco#2669 [email protected] -- Stop using deprecated G_CONST_RETURN +Patch0: mx-no-G_CONST_RETURN.patch BuildRequires: fdupes BuildRequires: intltool BuildRequires: pkgconfig(clutter-1.0) @@ -105,6 +107,7 @@ %lang_package %prep %setup -q +%patch0 -p1 %build %configure \ ++++++ mx-no-G_CONST_RETURN.patch ++++++ >From 16a4558f474cc67a5ae8e88ec238009a924bd6a3 Mon Sep 17 00:00:00 2001 From: Claudio Saavedra <[email protected]> Date: Thu, 16 Jun 2011 14:29:09 +0300 Subject: [PATCH] Replace deprecated G_CONST_RETURN with const http://bugzilla.clutter-project.org/show_bug.cgi?id=2669 --- mx/mx-application.c | 2 +- mx/mx-application.h | 2 +- mx/mx-button-group.c | 2 +- mx/mx-button-group.h | 2 +- mx/mx-button.c | 4 ++-- mx/mx-button.h | 4 ++-- mx/mx-entry.c | 4 ++-- mx/mx-entry.h | 4 ++-- mx/mx-label.c | 2 +- mx/mx-label.h | 2 +- mx/mx-stylable.c | 4 ++-- mx/mx-stylable.h | 8 ++++---- mx/mx-tooltip.c | 4 ++-- mx/mx-tooltip.h | 4 ++-- 14 files changed, 24 insertions(+), 24 deletions(-) diff --git a/mx/mx-application.c b/mx/mx-application.c index 70faf62..60635c9 100644 --- a/mx/mx-application.c +++ b/mx/mx-application.c @@ -829,7 +829,7 @@ mx_application_remove_window (MxApplication *application, * of #MxWindow<!-- -->s. The returned list is owned by * @application and must not be altered. */ -G_CONST_RETURN GList* +const GList* mx_application_get_windows (MxApplication *application) { g_return_val_if_fail (MX_IS_APPLICATION (application), NULL); diff --git a/mx/mx-application.h b/mx/mx-application.h index 65af4f6..594246e 100644 --- a/mx/mx-application.h +++ b/mx/mx-application.h @@ -115,7 +115,7 @@ void mx_application_add_window (MxApplication *application, void mx_application_remove_window (MxApplication *application, MxWindow *window); -G_CONST_RETURN GList* mx_application_get_windows (MxApplication *application); +const GList* mx_application_get_windows (MxApplication *application); void mx_application_add_action (MxApplication *application, MxAction *action); diff --git a/mx/mx-button-group.c b/mx/mx-button-group.c index 8175a9a..bde8d82 100644 --- a/mx/mx-button-group.c +++ b/mx/mx-button-group.c @@ -453,7 +453,7 @@ mx_button_group_get_allow_no_active (MxButtonGroup *group) * Returns: a list of buttons. The list is owned by the #MxButtonGroup and * should not be modified by the application. */ -G_CONST_RETURN GSList * +const GSList * mx_button_group_get_buttons (MxButtonGroup *group) { g_return_val_if_fail (MX_IS_BUTTON_GROUP (group), NULL); diff --git a/mx/mx-button-group.h b/mx/mx-button-group.h index 6bfecd8..38402d3 100644 --- a/mx/mx-button-group.h +++ b/mx/mx-button-group.h @@ -105,7 +105,7 @@ void mx_button_group_set_allow_no_active (MxButtonGroup *group, gboolean allow_no_active); gboolean mx_button_group_get_allow_no_active (MxButtonGroup *group); -G_CONST_RETURN GSList *mx_button_group_get_buttons (MxButtonGroup *group); +const GSList *mx_button_group_get_buttons (MxButtonGroup *group); G_END_DECLS diff --git a/mx/mx-button.c b/mx/mx-button.c index c0d6e75..b8c8b27 100644 --- a/mx/mx-button.c +++ b/mx/mx-button.c @@ -1015,7 +1015,7 @@ mx_button_new_with_label (const gchar *text) * * Returns: the text for the button. This must not be freed by the application */ -G_CONST_RETURN gchar * +const gchar * mx_button_get_label (MxButton *button) { g_return_val_if_fail (MX_IS_BUTTON (button), NULL); @@ -1346,7 +1346,7 @@ mx_button_get_label_visible (MxButton *button) * * Since: 1.2 */ -G_CONST_RETURN gchar * +const gchar * mx_button_get_icon_name (MxButton *button) { g_return_val_if_fail (MX_IS_BUTTON (button), NULL); diff --git a/mx/mx-button.h b/mx/mx-button.h index 4096bff..1001338 100644 --- a/mx/mx-button.h +++ b/mx/mx-button.h @@ -82,10 +82,10 @@ GType mx_button_get_type (void) G_GNUC_CONST; ClutterActor *mx_button_new (void); ClutterActor *mx_button_new_with_label (const gchar *text); -G_CONST_RETURN gchar *mx_button_get_label (MxButton *button); +const gchar *mx_button_get_label (MxButton *button); void mx_button_set_label (MxButton *button, const gchar *text); -G_CONST_RETURN gchar *mx_button_get_icon_name (MxButton *button); +const gchar *mx_button_get_icon_name (MxButton *button); void mx_button_set_icon_name (MxButton *button, const gchar *icon_name); guint mx_button_get_icon_size (MxButton *button); diff --git a/mx/mx-entry.c b/mx/mx-entry.c index 9982786..1dd5597 100644 --- a/mx/mx-entry.c +++ b/mx/mx-entry.c @@ -1068,7 +1068,7 @@ mx_entry_new_with_text (const gchar *text) * * Returns: the text for the entry. This must not be freed by the application */ -G_CONST_RETURN gchar * +const gchar * mx_entry_get_text (MxEntry *entry) { g_return_val_if_fail (MX_IS_ENTRY (entry), NULL); @@ -1188,7 +1188,7 @@ mx_entry_set_hint_text (MxEntry *entry, * Returns: the current value of the hint property. This string is owned by the * #MxEntry and should not be freed or modified. */ -G_CONST_RETURN +const gchar * mx_entry_get_hint_text (MxEntry *entry) { diff --git a/mx/mx-entry.h b/mx/mx-entry.h index e75bee4..ba5a894 100644 --- a/mx/mx-entry.h +++ b/mx/mx-entry.h @@ -79,14 +79,14 @@ GType mx_entry_get_type (void) G_GNUC_CONST; ClutterActor *mx_entry_new (void); ClutterActor *mx_entry_new_with_text (const gchar *text); -G_CONST_RETURN gchar *mx_entry_get_text (MxEntry *entry); +const gchar *mx_entry_get_text (MxEntry *entry); void mx_entry_set_text (MxEntry *entry, const gchar *text); ClutterActor* mx_entry_get_clutter_text (MxEntry *entry); void mx_entry_set_hint_text (MxEntry *entry, const gchar *text); -G_CONST_RETURN gchar *mx_entry_get_hint_text (MxEntry *entry); +const gchar *mx_entry_get_hint_text (MxEntry *entry); void mx_entry_set_password_char (MxEntry *entry, gunichar password_char); diff --git a/mx/mx-label.c b/mx/mx-label.c index 6b0b0d2..ff4f58b 100644 --- a/mx/mx-label.c +++ b/mx/mx-label.c @@ -635,7 +635,7 @@ mx_label_new_with_text (const gchar *text) * * Returns: the text for the label. This must not be freed by the application */ -G_CONST_RETURN gchar * +const gchar * mx_label_get_text (MxLabel *label) { g_return_val_if_fail (MX_IS_LABEL (label), NULL); diff --git a/mx/mx-label.h b/mx/mx-label.h index 05f9fb8..23ef201 100644 --- a/mx/mx-label.h +++ b/mx/mx-label.h @@ -74,7 +74,7 @@ GType mx_label_get_type (void) G_GNUC_CONST; ClutterActor *mx_label_new (void); ClutterActor *mx_label_new_with_text (const gchar *text); -G_CONST_RETURN gchar *mx_label_get_text (MxLabel *label); +const gchar *mx_label_get_text (MxLabel *label); void mx_label_set_text (MxLabel *label, const gchar *text); gboolean mx_label_get_use_markup (MxLabel *label); diff --git a/mx/mx-stylable.c b/mx/mx-stylable.c index 85f4db7..2a228f2 100644 --- a/mx/mx-stylable.c +++ b/mx/mx-stylable.c @@ -784,7 +784,7 @@ mx_stylable_set_style (MxStylable *stylable, * Returns: the pseudo class string. The string is owned by the #MxWidget and * should not be modified or freed. */ -G_CONST_RETURN gchar* +const gchar* mx_stylable_get_style_pseudo_class (MxStylable *stylable) { MxStylableIface *iface; @@ -963,7 +963,7 @@ mx_stylable_style_pseudo_class_remove (MxStylable *stylable, * Returns: the class name string. The string is owned by the #MxWidget and * should not be modified or freed. */ -G_CONST_RETURN gchar* +const gchar* mx_stylable_get_style_class (MxStylable *stylable) { MxStylableIface *iface; diff --git a/mx/mx-stylable.h b/mx/mx-stylable.h index b76c490..158cae0 100644 --- a/mx/mx-stylable.h +++ b/mx/mx-stylable.h @@ -70,11 +70,11 @@ struct _MxStylableIface void (* set_style) (MxStylable *stylable, MxStyle *style); - G_CONST_RETURN gchar* (* get_style_class) (MxStylable *stylable); + const gchar* (* get_style_class) (MxStylable *stylable); void (* set_style_class) (MxStylable *stylable, const gchar *style_class); - G_CONST_RETURN gchar* (* get_style_pseudo_class) (MxStylable *stylable); + const gchar* (* get_style_pseudo_class) (MxStylable *stylable); void (* set_style_pseudo_class) (MxStylable *stylable, const gchar *pseudo_class); @@ -119,11 +119,11 @@ gboolean mx_stylable_get_default_value (MxStylable *stylable, GValue *value_out); -G_CONST_RETURN gchar* mx_stylable_get_style_class (MxStylable *stylable); +const gchar* mx_stylable_get_style_class (MxStylable *stylable); void mx_stylable_set_style_class (MxStylable *stylable, const gchar *style_class); -G_CONST_RETURN gchar* mx_stylable_get_style_pseudo_class (MxStylable *stylable); +const gchar* mx_stylable_get_style_pseudo_class (MxStylable *stylable); void mx_stylable_set_style_pseudo_class (MxStylable *stylable, const gchar *pseudo_class); diff --git a/mx/mx-tooltip.c b/mx/mx-tooltip.c index f469642..8e61b63 100644 --- a/mx/mx-tooltip.c +++ b/mx/mx-tooltip.c @@ -722,7 +722,7 @@ mx_tooltip_update_position (MxTooltip *tooltip) * Returns: the text for the tooltip. This must not be freed by the application */ -G_CONST_RETURN gchar * +const gchar * mx_tooltip_get_text (MxTooltip *tooltip) { g_return_val_if_fail (MX_IS_TOOLTIP (tooltip), NULL); @@ -909,7 +909,7 @@ mx_tooltip_set_tip_area (MxTooltip *tooltip, * Returns: the #ClutterGeometry, owned by the tooltip which must not be freed * by the application. */ -G_CONST_RETURN ClutterGeometry* +const ClutterGeometry* mx_tooltip_get_tip_area (MxTooltip *tooltip) { g_return_val_if_fail (MX_IS_TOOLTIP (tooltip), NULL); diff --git a/mx/mx-tooltip.h b/mx/mx-tooltip.h index b7b783b..44419c8 100644 --- a/mx/mx-tooltip.h +++ b/mx/mx-tooltip.h @@ -74,7 +74,7 @@ struct _MxTooltipClass GType mx_tooltip_get_type (void) G_GNUC_CONST; -G_CONST_RETURN gchar *mx_tooltip_get_text (MxTooltip *tooltip); +const gchar *mx_tooltip_get_text (MxTooltip *tooltip); void mx_tooltip_set_text (MxTooltip *tooltip, const gchar *text); @@ -83,7 +83,7 @@ void mx_tooltip_hide (MxTooltip *tooltip); void mx_tooltip_set_tip_area (MxTooltip *tooltip, const ClutterGeometry *area); -G_CONST_RETURN ClutterGeometry* mx_tooltip_get_tip_area (MxTooltip *tooltip); +const ClutterGeometry* mx_tooltip_get_tip_area (MxTooltip *tooltip); gboolean mx_tooltip_is_in_browse_mode (void); -- 1.7.5.2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
