some gtk_*_set_arg fixes

-timj
This commit is contained in:
Tim Janik 1998-01-21 23:03:11 +00:00
parent b2140a2322
commit fb48f5a356
8 changed files with 26 additions and 0 deletions

View File

@ -125,6 +125,9 @@ gtk_box_set_arg (GtkBox *box,
case ARG_HOMOGENEOUS:
gtk_box_set_homogeneous (box, GTK_VALUE_BOOL (*arg));
break;
default:
arg->type = GTK_TYPE_INVALID;
break;
}
}

View File

@ -231,6 +231,9 @@ gtk_button_set_arg (GtkButton *button,
gtk_container_add (GTK_CONTAINER (button), label);
gtk_container_enable_resize (GTK_CONTAINER (button));
break;
default:
arg->type = GTK_TYPE_INVALID;
break;
}
}

View File

@ -229,6 +229,9 @@ gtk_container_set_arg (GtkContainer *container,
case ARG_CHILD:
gtk_container_add (container, GTK_WIDGET (GTK_VALUE_OBJECT (*arg)));
break;
default:
arg->type = GTK_TYPE_INVALID;
break;
}
}
@ -250,6 +253,7 @@ gtk_container_get_arg (GtkContainer *container,
break;
default:
arg->type = GTK_TYPE_INVALID;
break;
}
}

View File

@ -131,6 +131,9 @@ gtk_frame_set_arg (GtkFrame *frame,
case ARG_SHADOW:
gtk_frame_set_shadow_type (frame, GTK_VALUE_ENUM (*arg));
break;
default:
arg->type = GTK_TYPE_INVALID;
break;
}
}

View File

@ -99,6 +99,9 @@ static void gtk_label_set_arg (GtkLabel *label,
case ARG_JUSTIFY:
gtk_label_set_justify (label, GTK_VALUE_ENUM (*arg));
break;
default:
arg->type = GTK_TYPE_INVALID;
break;
}
}

View File

@ -206,6 +206,9 @@ gtk_object_set_arg (GtkObject *object,
(GtkSignalFunc) GTK_VALUE_SIGNAL (*arg).f,
(GtkObject*) GTK_VALUE_SIGNAL (*arg).d);
break;
default:
arg->type = GTK_TYPE_INVALID;
break;
}
}

View File

@ -762,6 +762,9 @@ gtk_widget_set_arg (GtkWidget *widget,
case ARG_PARENT:
gtk_container_add (GTK_CONTAINER (GTK_VALUE_OBJECT (*arg)), widget);
break;
default:
arg->type = GTK_TYPE_INVALID;
break;
}
}
@ -858,6 +861,7 @@ gtk_widget_get_arg (GtkWidget *widget,
break;
default:
arg->type = GTK_TYPE_INVALID;
break;
}
}

View File

@ -250,6 +250,9 @@ gtk_window_set_arg (GtkWindow *window,
case ARG_WIN_POS:
gtk_window_position (window, GTK_VALUE_ENUM (*arg));
break;
default:
arg->type = GTK_TYPE_INVALID;
break;
}
}