Commit fb48f5a3 authored by Tim Janik's avatar Tim Janik

some gtk_*_set_arg fixes

-timj
parent b2140a23
...@@ -125,6 +125,9 @@ gtk_box_set_arg (GtkBox *box, ...@@ -125,6 +125,9 @@ gtk_box_set_arg (GtkBox *box,
case ARG_HOMOGENEOUS: case ARG_HOMOGENEOUS:
gtk_box_set_homogeneous (box, GTK_VALUE_BOOL (*arg)); gtk_box_set_homogeneous (box, GTK_VALUE_BOOL (*arg));
break; break;
default:
arg->type = GTK_TYPE_INVALID;
break;
} }
} }
......
...@@ -231,6 +231,9 @@ gtk_button_set_arg (GtkButton *button, ...@@ -231,6 +231,9 @@ gtk_button_set_arg (GtkButton *button,
gtk_container_add (GTK_CONTAINER (button), label); gtk_container_add (GTK_CONTAINER (button), label);
gtk_container_enable_resize (GTK_CONTAINER (button)); gtk_container_enable_resize (GTK_CONTAINER (button));
break; break;
default:
arg->type = GTK_TYPE_INVALID;
break;
} }
} }
......
...@@ -229,6 +229,9 @@ gtk_container_set_arg (GtkContainer *container, ...@@ -229,6 +229,9 @@ gtk_container_set_arg (GtkContainer *container,
case ARG_CHILD: case ARG_CHILD:
gtk_container_add (container, GTK_WIDGET (GTK_VALUE_OBJECT (*arg))); gtk_container_add (container, GTK_WIDGET (GTK_VALUE_OBJECT (*arg)));
break; break;
default:
arg->type = GTK_TYPE_INVALID;
break;
} }
} }
...@@ -250,6 +253,7 @@ gtk_container_get_arg (GtkContainer *container, ...@@ -250,6 +253,7 @@ gtk_container_get_arg (GtkContainer *container,
break; break;
default: default:
arg->type = GTK_TYPE_INVALID; arg->type = GTK_TYPE_INVALID;
break;
} }
} }
......
...@@ -131,6 +131,9 @@ gtk_frame_set_arg (GtkFrame *frame, ...@@ -131,6 +131,9 @@ gtk_frame_set_arg (GtkFrame *frame,
case ARG_SHADOW: case ARG_SHADOW:
gtk_frame_set_shadow_type (frame, GTK_VALUE_ENUM (*arg)); gtk_frame_set_shadow_type (frame, GTK_VALUE_ENUM (*arg));
break; break;
default:
arg->type = GTK_TYPE_INVALID;
break;
} }
} }
......
...@@ -99,6 +99,9 @@ static void gtk_label_set_arg (GtkLabel *label, ...@@ -99,6 +99,9 @@ static void gtk_label_set_arg (GtkLabel *label,
case ARG_JUSTIFY: case ARG_JUSTIFY:
gtk_label_set_justify (label, GTK_VALUE_ENUM (*arg)); gtk_label_set_justify (label, GTK_VALUE_ENUM (*arg));
break; break;
default:
arg->type = GTK_TYPE_INVALID;
break;
} }
} }
......
...@@ -206,6 +206,9 @@ gtk_object_set_arg (GtkObject *object, ...@@ -206,6 +206,9 @@ gtk_object_set_arg (GtkObject *object,
(GtkSignalFunc) GTK_VALUE_SIGNAL (*arg).f, (GtkSignalFunc) GTK_VALUE_SIGNAL (*arg).f,
(GtkObject*) GTK_VALUE_SIGNAL (*arg).d); (GtkObject*) GTK_VALUE_SIGNAL (*arg).d);
break; break;
default:
arg->type = GTK_TYPE_INVALID;
break;
} }
} }
......
...@@ -762,6 +762,9 @@ gtk_widget_set_arg (GtkWidget *widget, ...@@ -762,6 +762,9 @@ gtk_widget_set_arg (GtkWidget *widget,
case ARG_PARENT: case ARG_PARENT:
gtk_container_add (GTK_CONTAINER (GTK_VALUE_OBJECT (*arg)), widget); gtk_container_add (GTK_CONTAINER (GTK_VALUE_OBJECT (*arg)), widget);
break; break;
default:
arg->type = GTK_TYPE_INVALID;
break;
} }
} }
...@@ -858,6 +861,7 @@ gtk_widget_get_arg (GtkWidget *widget, ...@@ -858,6 +861,7 @@ gtk_widget_get_arg (GtkWidget *widget,
break; break;
default: default:
arg->type = GTK_TYPE_INVALID; arg->type = GTK_TYPE_INVALID;
break;
} }
} }
......
...@@ -250,6 +250,9 @@ gtk_window_set_arg (GtkWindow *window, ...@@ -250,6 +250,9 @@ gtk_window_set_arg (GtkWindow *window,
case ARG_WIN_POS: case ARG_WIN_POS:
gtk_window_position (window, GTK_VALUE_ENUM (*arg)); gtk_window_position (window, GTK_VALUE_ENUM (*arg));
break; break;
default:
arg->type = GTK_TYPE_INVALID;
break;
} }
} }
......
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