Skip to content

Commit

Permalink
Fixup: GTK2 support for CSD fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipberndt committed Feb 27, 2024
1 parent 3b5b41d commit 9fdd090
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pqiv.c
Original file line number Diff line number Diff line change
Expand Up @@ -7364,7 +7364,11 @@ void create_window() { /*{{{*/
g_signal_connect(main_window, "realize", G_CALLBACK(window_realize_callback), NULL);

// Not used for anything except determining CSD dimensions
#if GTK_CHECK_VERSION(3, 2, 0)
main_window_box = GTK_WIDGET(gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0));
#else
main_window_box = GTK_WIDGET(gtk_hbox_new(TRUE, 0));
#endif
gtk_container_add(GTK_CONTAINER(main_window), main_window_box);

gtk_widget_set_events(GTK_WIDGET(main_window),
Expand Down

0 comments on commit 9fdd090

Please sign in to comment.