Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
15d46dd8
Commit
15d46dd8
authored
Sep 15, 2010
by
Javier Jardón
Browse files
demos: Use gtk_size_request_get_size() instead gtk_widget_size_request()
parent
b140884f
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/testpixbuf-scale.c
View file @
15d46dd8
...
...
@@ -141,7 +141,8 @@ main(int argc, char **argv)
gtk_widget_show_all
(
vbox
);
/* Compute the size without the drawing area, so we know how big to make the default size */
gtk_widget_size_request
(
vbox
,
&
scratch_requisition
);
gtk_size_request_get_size
(
GTK_SIZE_REQUEST
(
vbox
),
&
scratch_requisition
,
NULL
);
darea
=
gtk_drawing_area_new
();
gtk_box_pack_start
(
GTK_BOX
(
vbox
),
darea
,
TRUE
,
TRUE
,
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment