camera: allow the window to be resized smaller
This commit is contained in:
parent
3b5399a8d2
commit
9e855dad62
|
@ -1533,9 +1533,6 @@ static gboolean _camera_on_open(gpointer data)
|
|||
gtk_widget_set_sensitive(
|
||||
GTK_WIDGET(_camera_toolbar[CT_PROPERTIES].widget),
|
||||
TRUE);
|
||||
/* FIXME allow the window to be smaller */
|
||||
gtk_widget_set_size_request(camera->area, camera->format.fmt.pix.width,
|
||||
camera->format.fmt.pix.height);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -201,6 +201,7 @@ CameraWindow * camerawindow_new(char const * device)
|
|||
# endif
|
||||
gtk_window_set_title(GTK_WINDOW(camera->window), _("Camera"));
|
||||
#endif
|
||||
gtk_window_set_default_size(GTK_WINDOW(camera->window), 640, 480);
|
||||
g_signal_connect_swapped(camera->window, "delete-event", G_CALLBACK(
|
||||
_camerawindow_on_closex), camera);
|
||||
g_signal_connect(camera->window, "window-state-event", G_CALLBACK(
|
||||
|
|
Loading…
Reference in New Issue
Block a user