mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
removed extraneous GObject* returns from a couple functions that are very
Mon Sep 10 20:31:37 2001 Tim Janik <timj@gtk.org> * gobject.[hc]: removed extraneous GObject* returns from a couple functions that are very unlikely to be used in nested. changed gpointer->GObject* for a couple return values/arguments. this fixes #50206.
This commit is contained in:
@@ -296,6 +296,7 @@ to match the one used with g_object_add_weak_pointer().
|
|||||||
@object:
|
@object:
|
||||||
@signal_spec:
|
@signal_spec:
|
||||||
@Varargs:
|
@Varargs:
|
||||||
|
<!-- # Unused Parameters # -->
|
||||||
@Returns:
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
@@ -307,6 +308,7 @@ to match the one used with g_object_add_weak_pointer().
|
|||||||
@object:
|
@object:
|
||||||
@first_property_name:
|
@first_property_name:
|
||||||
@Varargs:
|
@Varargs:
|
||||||
|
<!-- # Unused Parameters # -->
|
||||||
@Returns:
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,3 +1,10 @@
|
|||||||
|
Mon Sep 10 20:31:37 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gobject.[hc]: removed extraneous GObject* returns from a
|
||||||
|
couple functions that are very unlikely to be used in nested.
|
||||||
|
changed gpointer->GObject* for a couple return values/arguments.
|
||||||
|
this fixes #50206.
|
||||||
|
|
||||||
Mon Sep 10 19:27:47 2001 Tim Janik <timj@gtk.org>
|
Mon Sep 10 19:27:47 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtype.[hc]:
|
* gtype.[hc]:
|
||||||
|
@@ -720,7 +720,7 @@ g_object_newv (GType object_type,
|
|||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
gpointer
|
GObject*
|
||||||
g_object_new_valist (GType object_type,
|
g_object_new_valist (GType object_type,
|
||||||
const gchar *first_property_name,
|
const gchar *first_property_name,
|
||||||
va_list var_args)
|
va_list var_args)
|
||||||
@@ -949,7 +949,7 @@ g_object_get_valist (GObject *object,
|
|||||||
g_object_unref (object);
|
g_object_unref (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
gpointer
|
void
|
||||||
g_object_set (gpointer _object,
|
g_object_set (gpointer _object,
|
||||||
const gchar *first_property_name,
|
const gchar *first_property_name,
|
||||||
...)
|
...)
|
||||||
@@ -957,13 +957,11 @@ g_object_set (gpointer _object,
|
|||||||
GObject *object = _object;
|
GObject *object = _object;
|
||||||
va_list var_args;
|
va_list var_args;
|
||||||
|
|
||||||
g_return_val_if_fail (G_IS_OBJECT (object), NULL);
|
g_return_if_fail (G_IS_OBJECT (object));
|
||||||
|
|
||||||
va_start (var_args, first_property_name);
|
va_start (var_args, first_property_name);
|
||||||
g_object_set_valist (object, first_property_name, var_args);
|
g_object_set_valist (object, first_property_name, var_args);
|
||||||
va_end (var_args);
|
va_end (var_args);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -1132,7 +1130,7 @@ g_object_connect (gpointer _object,
|
|||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
gpointer
|
void
|
||||||
g_object_disconnect (gpointer _object,
|
g_object_disconnect (gpointer _object,
|
||||||
const gchar *signal_spec,
|
const gchar *signal_spec,
|
||||||
...)
|
...)
|
||||||
@@ -1140,8 +1138,8 @@ g_object_disconnect (gpointer _object,
|
|||||||
GObject *object = _object;
|
GObject *object = _object;
|
||||||
va_list var_args;
|
va_list var_args;
|
||||||
|
|
||||||
g_return_val_if_fail (G_IS_OBJECT (object), NULL);
|
g_return_if_fail (G_IS_OBJECT (object));
|
||||||
g_return_val_if_fail (object->ref_count > 0, object);
|
g_return_if_fail (object->ref_count > 0);
|
||||||
|
|
||||||
va_start (var_args, signal_spec);
|
va_start (var_args, signal_spec);
|
||||||
while (signal_spec)
|
while (signal_spec)
|
||||||
@@ -1176,8 +1174,6 @@ g_object_disconnect (gpointer _object,
|
|||||||
signal_spec = va_arg (var_args, gchar*);
|
signal_spec = va_arg (var_args, gchar*);
|
||||||
}
|
}
|
||||||
va_end (var_args);
|
va_end (var_args);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@@ -1670,9 +1666,8 @@ g_closure_new_object (guint sizeof_closure,
|
|||||||
|
|
||||||
GClosure*
|
GClosure*
|
||||||
g_cclosure_new_object (GCallback callback_func,
|
g_cclosure_new_object (GCallback callback_func,
|
||||||
gpointer _object)
|
GObject *object)
|
||||||
{
|
{
|
||||||
GObject *object = _object;
|
|
||||||
GClosure *closure;
|
GClosure *closure;
|
||||||
|
|
||||||
g_return_val_if_fail (G_IS_OBJECT (object), NULL);
|
g_return_val_if_fail (G_IS_OBJECT (object), NULL);
|
||||||
@@ -1687,9 +1682,8 @@ g_cclosure_new_object (GCallback callback_func,
|
|||||||
|
|
||||||
GClosure*
|
GClosure*
|
||||||
g_cclosure_new_object_swap (GCallback callback_func,
|
g_cclosure_new_object_swap (GCallback callback_func,
|
||||||
gpointer _object)
|
GObject *object)
|
||||||
{
|
{
|
||||||
GObject *object = _object;
|
|
||||||
GClosure *closure;
|
GClosure *closure;
|
||||||
|
|
||||||
g_return_val_if_fail (G_IS_OBJECT (object), NULL);
|
g_return_val_if_fail (G_IS_OBJECT (object), NULL);
|
||||||
|
@@ -116,10 +116,10 @@ gpointer g_object_new (GType object_type,
|
|||||||
gpointer g_object_newv (GType object_type,
|
gpointer g_object_newv (GType object_type,
|
||||||
guint n_parameters,
|
guint n_parameters,
|
||||||
GParameter *parameters);
|
GParameter *parameters);
|
||||||
gpointer g_object_new_valist (GType object_type,
|
GObject* g_object_new_valist (GType object_type,
|
||||||
const gchar *first_property_name,
|
const gchar *first_property_name,
|
||||||
va_list var_args);
|
va_list var_args);
|
||||||
gpointer g_object_set (gpointer object,
|
void g_object_set (gpointer object,
|
||||||
const gchar *first_property_name,
|
const gchar *first_property_name,
|
||||||
...);
|
...);
|
||||||
void g_object_get (gpointer object,
|
void g_object_get (gpointer object,
|
||||||
@@ -128,7 +128,7 @@ void g_object_get (gpointer object,
|
|||||||
gpointer g_object_connect (gpointer object,
|
gpointer g_object_connect (gpointer object,
|
||||||
const gchar *signal_spec,
|
const gchar *signal_spec,
|
||||||
...);
|
...);
|
||||||
gpointer g_object_disconnect (gpointer object,
|
void g_object_disconnect (gpointer object,
|
||||||
const gchar *signal_spec,
|
const gchar *signal_spec,
|
||||||
...);
|
...);
|
||||||
void g_object_set_valist (GObject *object,
|
void g_object_set_valist (GObject *object,
|
||||||
@@ -184,9 +184,9 @@ gpointer g_object_steal_data (GObject *object,
|
|||||||
void g_object_watch_closure (GObject *object,
|
void g_object_watch_closure (GObject *object,
|
||||||
GClosure *closure);
|
GClosure *closure);
|
||||||
GClosure* g_cclosure_new_object (GCallback callback_func,
|
GClosure* g_cclosure_new_object (GCallback callback_func,
|
||||||
gpointer object);
|
GObject *object);
|
||||||
GClosure* g_cclosure_new_object_swap (GCallback callback_func,
|
GClosure* g_cclosure_new_object_swap (GCallback callback_func,
|
||||||
gpointer object);
|
GObject *object);
|
||||||
GClosure* g_closure_new_object (guint sizeof_closure,
|
GClosure* g_closure_new_object (guint sizeof_closure,
|
||||||
GObject *object);
|
GObject *object);
|
||||||
void g_value_set_object (GValue *value,
|
void g_value_set_object (GValue *value,
|
||||||
|
Reference in New Issue
Block a user