diff options
author | Michael Natterer <mitch@imendio.com> | 2005-11-14 11:28:33 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2005-11-14 11:28:33 +0000 |
commit | 35de5c5b78a000d7a896352171b3e08d3675c95d (patch) | |
tree | 444fcceb4defb96263fca1fdcd5c7dd89f9248f3 /gtk/gtkcellrenderertoggle.c | |
parent | 087721651104bbd2573d7c6c577ec45d4f5350da (diff) | |
download | gtk+-35de5c5b78a000d7a896352171b3e08d3675c95d.tar.gz |
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().
Diffstat (limited to 'gtk/gtkcellrenderertoggle.c')
-rw-r--r-- | gtk/gtkcellrenderertoggle.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gtk/gtkcellrenderertoggle.c b/gtk/gtkcellrenderertoggle.c index 6cec148035..ab59ebc910 100644 --- a/gtk/gtkcellrenderertoggle.c +++ b/gtk/gtkcellrenderertoggle.c @@ -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 * |