mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-11-04 15:51:13 +00:00
Merge branch 'bilelmoussaoui/mks-cosmetics' into 'main'
tools/mks: Cosmetic changes See merge request chergert/libmks!15
This commit is contained in:
commit
018b072100
10
tools/mks.c
10
tools/mks.c
@ -65,6 +65,7 @@ main (int argc,
|
|||||||
g_autoptr(GError) error = NULL;
|
g_autoptr(GError) error = NULL;
|
||||||
GtkWindow *window;
|
GtkWindow *window;
|
||||||
GtkWidget *display;
|
GtkWidget *display;
|
||||||
|
GtkSettings *settings;
|
||||||
GdkSurface *surface;
|
GdkSurface *surface;
|
||||||
|
|
||||||
gtk_init ();
|
gtk_init ();
|
||||||
@ -79,10 +80,15 @@ 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", 640,
|
"default-width", 1280,
|
||||||
"default-height", 480,
|
"default-height", 768,
|
||||||
"title", "Mouse, Keyboard, Screen",
|
"title", "Mouse, Keyboard, Screen",
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
settings = gtk_settings_get_default ();
|
||||||
|
g_object_set (settings, "gtk-application-prefer-dark-theme", TRUE, NULL);
|
||||||
|
gtk_widget_add_css_class (GTK_WIDGET (window), "dark");
|
||||||
|
|
||||||
display = mks_display_new ();
|
display = mks_display_new ();
|
||||||
gtk_window_set_child (window, display);
|
gtk_window_set_child (window, display);
|
||||||
g_signal_connect_swapped (window,
|
g_signal_connect_swapped (window,
|
||||||
|
Loading…
Reference in New Issue
Block a user