summaryrefslogtreecommitdiff
path: root/gtk/gtkhandlebox.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-07-18 23:39:26 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-07-18 23:39:26 +0000
commit4e2b60ac4d32c5bef5b192a12a59f8c2a3124f81 (patch)
tree63b0cecda2350e250c3a1de4a53f43befab1b076 /gtk/gtkhandlebox.c
parentb613a74cb20a480f9d95579243278660af300cee (diff)
downloadgtk+-4e2b60ac4d32c5bef5b192a12a59f8c2a3124f81.tar.gz
Patch from Matthias Clasen to remove remove all instances of
Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com> * gtk/*.c: Patch from Matthias Clasen to remove remove all instances of g_return_if_fail (foo != NULL); that are immediately before a g_return_if_fail (GTK_IS_FOO (foo)); since the second check catches the NULL anyways.
Diffstat (limited to 'gtk/gtkhandlebox.c')
-rw-r--r--gtk/gtkhandlebox.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index 9fb232bf0c..852a184040 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -319,7 +319,6 @@ gtk_handle_box_destroy (GtkObject *object)
{
GtkHandleBox *hb;
- g_return_if_fail (object != NULL);
g_return_if_fail (GTK_IS_HANDLE_BOX (object));
hb = GTK_HANDLE_BOX (object);
@@ -334,7 +333,6 @@ gtk_handle_box_map (GtkWidget *widget)
GtkBin *bin;
GtkHandleBox *hb;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_HANDLE_BOX (widget));
GTK_WIDGET_SET_FLAGS (widget, GTK_MAPPED);
@@ -362,7 +360,6 @@ gtk_handle_box_unmap (GtkWidget *widget)
{
GtkHandleBox *hb;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_HANDLE_BOX (widget));
GTK_WIDGET_UNSET_FLAGS (widget, GTK_MAPPED);
@@ -384,7 +381,6 @@ gtk_handle_box_realize (GtkWidget *widget)
gint attributes_mask;
GtkHandleBox *hb;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_HANDLE_BOX (widget));
hb = GTK_HANDLE_BOX (widget);
@@ -454,7 +450,6 @@ gtk_handle_box_unrealize (GtkWidget *widget)
{
GtkHandleBox *hb;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_HANDLE_BOX (widget));
hb = GTK_HANDLE_BOX (widget);
@@ -476,7 +471,6 @@ gtk_handle_box_style_set (GtkWidget *widget,
{
GtkHandleBox *hb;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_HANDLE_BOX (widget));
hb = GTK_HANDLE_BOX (widget);
@@ -499,7 +493,6 @@ gtk_handle_box_size_request (GtkWidget *widget,
GtkHandleBox *hb;
GtkRequisition child_requisition;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_HANDLE_BOX (widget));
g_return_if_fail (requisition != NULL);
@@ -575,7 +568,6 @@ gtk_handle_box_size_allocate (GtkWidget *widget,
GtkHandleBox *hb;
GtkRequisition child_requisition;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_HANDLE_BOX (widget));
g_return_if_fail (allocation != NULL);
@@ -736,7 +728,6 @@ void
gtk_handle_box_set_shadow_type (GtkHandleBox *handle_box,
GtkShadowType type)
{
- g_return_if_fail (handle_box != NULL);
g_return_if_fail (GTK_IS_HANDLE_BOX (handle_box));
if ((GtkShadowType) handle_box->shadow_type != type)
@@ -797,7 +788,6 @@ void
gtk_handle_box_set_snap_edge (GtkHandleBox *handle_box,
GtkPositionType edge)
{
- g_return_if_fail (handle_box != NULL);
g_return_if_fail (GTK_IS_HANDLE_BOX (handle_box));
if (handle_box->snap_edge != edge)
@@ -918,7 +908,6 @@ gtk_handle_box_expose (GtkWidget *widget,
{
GtkHandleBox *hb;
- g_return_val_if_fail (widget != NULL, FALSE);
g_return_val_if_fail (GTK_IS_HANDLE_BOX (widget), FALSE);
g_return_val_if_fail (event != NULL, FALSE);
@@ -946,7 +935,6 @@ gtk_handle_box_button_changed (GtkWidget *widget,
gboolean event_handled;
GdkCursor *fleur;
- g_return_val_if_fail (widget != NULL, FALSE);
g_return_val_if_fail (GTK_IS_HANDLE_BOX (widget), FALSE);
g_return_val_if_fail (event != NULL, FALSE);
@@ -1065,7 +1053,6 @@ gtk_handle_box_motion (GtkWidget *widget,
gint snap_edge;
gboolean is_snapped = FALSE;
- g_return_val_if_fail (widget != NULL, FALSE);
g_return_val_if_fail (GTK_IS_HANDLE_BOX (widget), FALSE);
g_return_val_if_fail (event != NULL, FALSE);
@@ -1264,7 +1251,6 @@ gtk_handle_box_delete_event (GtkWidget *widget,
{
GtkHandleBox *hb;
- g_return_val_if_fail (widget != NULL, FALSE);
g_return_val_if_fail (GTK_IS_HANDLE_BOX (widget), FALSE);
g_return_val_if_fail (event != NULL, FALSE);