mirror of
https://github.com/hamaluik/timecop.git
synced 2025-05-18 01:06:17 +08:00
Remove if for headerbar
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user