Commit 35de5c5b authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

removed redundant calls to g_object_notify().

2005-11-14  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property):
	removed redundant calls to g_object_notify().
parent 08772165
2005-11-14 Michael Natterer <mitch@imendio.com>
* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property):
removed redundant calls to g_object_notify().
2005-11-13 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkcolor.c (gdk_color_parse): Documentation
......
2005-11-14 Michael Natterer <mitch@imendio.com>
* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property):
removed redundant calls to g_object_notify().
2005-11-13 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkcolor.c (gdk_color_parse): Documentation
......
......@@ -233,24 +233,20 @@ gtk_cell_renderer_toggle_set_property (GObject *object,
GtkCellRendererTogglePrivate *priv;
priv = GTK_CELL_RENDERER_TOGGLE_GET_PRIVATE (object);
switch (param_id)
{
case PROP_ACTIVE:
celltoggle->active = g_value_get_boolean (value);
g_object_notify (G_OBJECT(object), "active");
break;
case PROP_INCONSISTENT:
priv->inconsistent = g_value_get_boolean (value);
g_object_notify (G_OBJECT (object), "inconsistent");
break;
case PROP_ACTIVATABLE:
celltoggle->activatable = g_value_get_boolean (value);
g_object_notify (G_OBJECT(object), "activatable");
break;
case PROP_RADIO:
celltoggle->radio = g_value_get_boolean (value);
g_object_notify (G_OBJECT(object), "radio");
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
......@@ -260,7 +256,7 @@ gtk_cell_renderer_toggle_set_property (GObject *object,
/**
* gtk_cell_renderer_toggle_new:
*
*
* Creates a new #GtkCellRendererToggle. Adjust rendering
* parameters using object properties. Object properties can be set
* globally (with g_object_set()). Also, with #GtkTreeViewColumn, you
......@@ -268,7 +264,7 @@ gtk_cell_renderer_toggle_set_property (GObject *object,
* can bind the "active" property on the cell renderer to a boolean value
* in the model, thus causing the check button to reflect the state of
* the model.
*
*
* Return value: the new cell renderer
**/
GtkCellRenderer *
......
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