Remove if for headerbar

This commit is contained in:
Miroslav Mazel
2022-03-11 23:47:38 +01:00
parent 2c915df115
commit f367b2b9cf

View File

@ -20,19 +20,6 @@ static void my_application_activate(GApplication* application) {
GtkWindow* window =
GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
// Use a header bar when running in GNOME as this is the common style used
// by applications and is the setup most users will be using (e.g. Ubuntu
// desktop).
// If running on X and not using GNOME then just use a traditional title bar
// in case the window manager does more exotic layout, e.g. tiling.
// If running on Wayland assume the header bar will work (may need changing
// if future cases occur).
#ifdef GDK_WINDOWING_X11
GdkScreen* screen = gtk_window_get_screen(window);
if (GDK_IS_X11_SCREEN(screen)) {
const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);
}
#endif
gtk_window_set_title(window, "Time Cop");
gtk_window_set_default_size(window, 1280, 720);