[gtk+/drop-gail: 11/24] remove a pointless check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/drop-gail: 11/24] remove a pointless check
- Date: Sun, 15 May 2011 02:13:01 +0000 (UTC)
commit c3a0875c342e6d9a41a03e396839b55a8020e5fe
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 24 21:43:05 2011 -0500
remove a pointless check
gtk/gtkaccessible.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c
index eb7697f..bb199be 100644
--- a/gtk/gtkaccessible.c
+++ b/gtk/gtkaccessible.c
@@ -108,14 +108,9 @@ gtk_accessible_get_widget (GtkAccessible *accessible)
void
gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible)
{
- GtkAccessibleClass *class;
-
g_return_if_fail (GTK_IS_ACCESSIBLE (accessible));
- class = GTK_ACCESSIBLE_GET_CLASS (accessible);
-
- if (class->connect_widget_destroyed)
- class->connect_widget_destroyed (accessible);
+ GTK_ACCESSIBLE_GET_CLASS (accessible)->connect_widget_destroyed (accessible);
}
static void
@@ -124,12 +119,8 @@ gtk_accessible_real_connect_widget_destroyed (GtkAccessible *accessible)
GtkAccessiblePrivate *priv = accessible->priv;
if (priv->widget)
- {
- g_signal_connect (priv->widget,
- "destroy",
- G_CALLBACK (gtk_widget_destroyed),
- &priv->widget);
- }
+ g_signal_connect (priv->widget, "destroy",
+ G_CALLBACK (gtk_widget_destroyed), &priv->widget);
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]