Commit 146e063f authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

app/core/gimpbrushclipboard.c app/core/gimppatternclipboard.c

2006-11-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrushclipboard.c
	* app/core/gimppatternclipboard.c
	* app/core/gimptooloptions.c
	* app/core/gimpundo.c
	* app/widgets/gimpdevicestatus.c
	* app/widgets/gimpdock.c
	* app/widgets/gimpimageparasiteview.c
	* app/widgets/gimpimagepropview.c: no need to cast the return
	value of g_value_get_object(), it's a gpointer.
parent b1ee4c59
2006-11-25 Michael Natterer <mitch@gimp.org>
* app/core/gimpbrushclipboard.c
* app/core/gimppatternclipboard.c
* app/core/gimptooloptions.c
* app/core/gimpundo.c
* app/widgets/gimpdevicestatus.c
* app/widgets/gimpdock.c
* app/widgets/gimpimageparasiteview.c
* app/widgets/gimpimagepropview.c: no need to cast the return
value of g_value_get_object(), it's a gpointer.
2006-11-24 Kevin Cozens <kcozens@cvs.gnome.org>
 
* app/pdb/gimpprocedure.c: Fix for minor typo in error message.
......
......@@ -135,7 +135,7 @@ gimp_brush_clipboard_set_property (GObject *object,
switch (property_id)
{
case PROP_GIMP:
brush->gimp = GIMP (g_value_get_object (value));
brush->gimp = g_value_get_object (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
......
......@@ -106,7 +106,7 @@ gimp_pattern_clipboard_constructor (GType type,
guint n_params,
GObjectConstructParam *params)
{
GObject *object;
GObject *object;
GimpPatternClipboard *pattern;
object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params);
......@@ -135,7 +135,7 @@ gimp_pattern_clipboard_set_property (GObject *object,
switch (property_id)
{
case PROP_GIMP:
pattern->gimp = GIMP (g_value_get_object (value));
pattern->gimp = g_value_get_object (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
......
......@@ -88,7 +88,7 @@ gimp_tool_options_set_property (GObject *object,
{
case PROP_TOOL_INFO:
{
GimpToolInfo *tool_info = GIMP_TOOL_INFO (g_value_get_object (value));
GimpToolInfo *tool_info = g_value_get_object (value);
g_return_if_fail (options->tool_info == NULL ||
options->tool_info == tool_info);
......
......@@ -245,7 +245,7 @@ gimp_undo_set_property (GObject *object,
{
case PROP_IMAGE:
/* don't ref */
undo->image = (GimpImage *) g_value_get_object (value);
undo->image = g_value_get_object (value);
break;
case PROP_UNDO_TYPE:
undo->undo_type = g_value_get_enum (value);
......
......@@ -185,7 +185,7 @@ gimp_device_status_set_property (GObject *object,
switch (property_id)
{
case PROP_GIMP:
status->gimp = GIMP (g_value_get_object (value));
status->gimp = g_value_get_object (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
......
......@@ -222,7 +222,7 @@ gimp_dock_set_property (GObject *object,
dock->context = GIMP_CONTEXT (g_value_dup_object (value));
break;
case PROP_DIALOG_FACTORY:
dock->dialog_factory = GIMP_DIALOG_FACTORY (g_value_get_object (value));
dock->dialog_factory = g_value_get_object (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
......
......@@ -126,7 +126,7 @@ gimp_image_parasite_view_set_property (GObject *object,
switch (property_id)
{
case PROP_IMAGE:
view->image = GIMP_IMAGE (g_value_get_object (value));
view->image = g_value_get_object (value);
break;
case PROP_PARASITE:
view->parasite = g_value_dup_string (value);
......
......@@ -176,7 +176,7 @@ gimp_image_prop_view_set_property (GObject *object,
switch (property_id)
{
case PROP_IMAGE:
view->image = GIMP_IMAGE (g_value_get_object (value));
view->image = g_value_get_object (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
......
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