mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2025-04-14 08:27:16 +00:00
tools: set content-fit for now
Until we have another widget to replace this.
This commit is contained in:
parent
3bc40bdb7b
commit
da98c77961
@ -61,13 +61,12 @@ main (int argc,
|
|||||||
main_loop = g_main_loop_new (NULL, FALSE);
|
main_loop = g_main_loop_new (NULL, FALSE);
|
||||||
|
|
||||||
window = g_object_new (GTK_TYPE_WINDOW,
|
window = g_object_new (GTK_TYPE_WINDOW,
|
||||||
"default-width", 800,
|
"default-width", 640,
|
||||||
"default-height", 600,
|
"default-height", 480,
|
||||||
"title", "Mouse, Keyboard, Screen",
|
"title", "Mouse, Keyboard, Screen",
|
||||||
NULL);
|
NULL);
|
||||||
picture = g_object_new (GTK_TYPE_PICTURE,
|
picture = g_object_new (GTK_TYPE_PICTURE,
|
||||||
"halign", GTK_ALIGN_CENTER,
|
"content-fit", GTK_CONTENT_FIT_SCALE_DOWN,
|
||||||
"valign", GTK_ALIGN_CENTER,
|
|
||||||
NULL);
|
NULL);
|
||||||
gtk_window_set_child (window, GTK_WIDGET (picture));
|
gtk_window_set_child (window, GTK_WIDGET (picture));
|
||||||
g_signal_connect_swapped (window,
|
g_signal_connect_swapped (window,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user