Remove use of G_CONST_RETURN macro.
This is going to be deprecated. https://bugzilla.gnome.org/show_bug.cgi?id=644632
This commit is contained in:
parent
3466829766
commit
44d61e6857
@ -735,7 +735,7 @@ st_entry_new (const gchar *text)
|
||||
*
|
||||
* Returns: the text for the entry. This must not be freed by the application
|
||||
*/
|
||||
G_CONST_RETURN gchar *
|
||||
const gchar *
|
||||
st_entry_get_text (StEntry *entry)
|
||||
{
|
||||
g_return_val_if_fail (ST_IS_ENTRY (entry), NULL);
|
||||
@ -843,8 +843,7 @@ st_entry_set_hint_text (StEntry *entry,
|
||||
* Returns: the current value of the hint property. This string is owned by the
|
||||
* #StEntry and should not be freed or modified.
|
||||
*/
|
||||
G_CONST_RETURN
|
||||
gchar *
|
||||
const gchar *
|
||||
st_entry_get_hint_text (StEntry *entry)
|
||||
{
|
||||
g_return_val_if_fail (ST_IS_ENTRY (entry), NULL);
|
||||
|
@ -65,14 +65,14 @@ struct _StEntryClass
|
||||
GType st_entry_get_type (void) G_GNUC_CONST;
|
||||
|
||||
StWidget * st_entry_new (const gchar *text);
|
||||
G_CONST_RETURN gchar *st_entry_get_text (StEntry *entry);
|
||||
const gchar * st_entry_get_text (StEntry *entry);
|
||||
void st_entry_set_text (StEntry *entry,
|
||||
const gchar *text);
|
||||
ClutterActor* st_entry_get_clutter_text (StEntry *entry);
|
||||
|
||||
void st_entry_set_hint_text (StEntry *entry,
|
||||
const gchar *text);
|
||||
G_CONST_RETURN gchar *st_entry_get_hint_text (StEntry *entry);
|
||||
const gchar * st_entry_get_hint_text (StEntry *entry);
|
||||
|
||||
void st_entry_set_primary_icon (StEntry *entry,
|
||||
ClutterActor *icon);
|
||||
|
@ -355,7 +355,7 @@ st_label_new (const gchar *text)
|
||||
*
|
||||
* Returns: the text for the label. This must not be freed by the application
|
||||
*/
|
||||
G_CONST_RETURN gchar *
|
||||
const gchar *
|
||||
st_label_get_text (StLabel *label)
|
||||
{
|
||||
g_return_val_if_fail (ST_IS_LABEL (label), NULL);
|
||||
|
@ -60,11 +60,11 @@ struct _StLabelClass
|
||||
|
||||
GType st_label_get_type (void) G_GNUC_CONST;
|
||||
|
||||
StWidget * st_label_new (const gchar *text);
|
||||
G_CONST_RETURN gchar *st_label_get_text (StLabel *label);
|
||||
void st_label_set_text (StLabel *label,
|
||||
const gchar *text);
|
||||
ClutterActor * st_label_get_clutter_text (StLabel *label);
|
||||
StWidget * st_label_new (const gchar *text);
|
||||
const gchar * st_label_get_text (StLabel *label);
|
||||
void st_label_set_text (StLabel *label,
|
||||
const gchar *text);
|
||||
ClutterActor * st_label_get_clutter_text (StLabel *label);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -377,7 +377,7 @@ st_tooltip_update_position (StTooltip *tooltip)
|
||||
*
|
||||
* Returns: the text for the tooltip. This must not be freed by the application
|
||||
*/
|
||||
G_CONST_RETURN gchar *
|
||||
const gchar *
|
||||
st_tooltip_get_label (StTooltip *tooltip)
|
||||
{
|
||||
g_return_val_if_fail (ST_IS_TOOLTIP (tooltip), NULL);
|
||||
@ -489,7 +489,7 @@ st_tooltip_set_tip_area (StTooltip *tooltip,
|
||||
* Returns: the #ClutterGeometry, owned by the tooltip which must not be freed
|
||||
* by the application.
|
||||
*/
|
||||
G_CONST_RETURN ClutterGeometry*
|
||||
const ClutterGeometry*
|
||||
st_tooltip_get_tip_area (StTooltip *tooltip)
|
||||
{
|
||||
g_return_val_if_fail (ST_IS_TOOLTIP (tooltip), NULL);
|
||||
|
@ -60,13 +60,13 @@ struct _StTooltipClass
|
||||
|
||||
GType st_tooltip_get_type (void) G_GNUC_CONST;
|
||||
|
||||
G_CONST_RETURN gchar *st_tooltip_get_label (StTooltip *tooltip);
|
||||
void st_tooltip_set_label (StTooltip *tooltip,
|
||||
const gchar *text);
|
||||
const gchar * st_tooltip_get_label (StTooltip *tooltip);
|
||||
void st_tooltip_set_label (StTooltip *tooltip,
|
||||
const gchar *text);
|
||||
|
||||
void st_tooltip_set_tip_area (StTooltip *tooltip,
|
||||
const ClutterGeometry *area);
|
||||
G_CONST_RETURN ClutterGeometry* st_tooltip_get_tip_area (StTooltip *tooltip);
|
||||
void st_tooltip_set_tip_area (StTooltip *tooltip,
|
||||
const ClutterGeometry *area);
|
||||
const ClutterGeometry* st_tooltip_get_tip_area (StTooltip *tooltip);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -96,7 +96,7 @@ void st_widget_add_style_pseudo_class (StWidget *acto
|
||||
const gchar *pseudo_class);
|
||||
void st_widget_remove_style_pseudo_class (StWidget *actor,
|
||||
const gchar *pseudo_class);
|
||||
G_CONST_RETURN gchar *st_widget_get_style_pseudo_class (StWidget *actor);
|
||||
const gchar * st_widget_get_style_pseudo_class (StWidget *actor);
|
||||
gboolean st_widget_has_style_pseudo_class (StWidget *actor,
|
||||
const gchar *pseudo_class);
|
||||
|
||||
@ -106,13 +106,13 @@ void st_widget_add_style_class_name (StWidget *acto
|
||||
const gchar *style_class);
|
||||
void st_widget_remove_style_class_name (StWidget *actor,
|
||||
const gchar *style_class);
|
||||
G_CONST_RETURN gchar *st_widget_get_style_class_name (StWidget *actor);
|
||||
const gchar * st_widget_get_style_class_name (StWidget *actor);
|
||||
gboolean st_widget_has_style_class_name (StWidget *actor,
|
||||
const gchar *style_class);
|
||||
|
||||
void st_widget_set_style (StWidget *actor,
|
||||
const gchar *style);
|
||||
G_CONST_RETURN gchar *st_widget_get_style (StWidget *actor);
|
||||
const gchar * st_widget_get_style (StWidget *actor);
|
||||
void st_widget_set_theme (StWidget *actor,
|
||||
StTheme *theme);
|
||||
StTheme * st_widget_get_theme (StWidget *actor);
|
||||
|
Loading…
Reference in New Issue
Block a user