From 0d2c6c7fff7449189f2e9c0af57aac47ccc7e0ea Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 5 May 2021 18:27:37 +0300 Subject: [PATCH 48/48] gtk3x: Drop unused root_window See osdn #42185 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/gui_main.c | 2 -- client/gui-gtk-4.0/gui_main.h | 1 - 2 files changed, 3 deletions(-) diff --git a/client/gui-gtk-4.0/gui_main.c b/client/gui-gtk-4.0/gui_main.c index 9fb607b1a4..2475c146e0 100644 --- a/client/gui-gtk-4.0/gui_main.c +++ b/client/gui-gtk-4.0/gui_main.c @@ -121,7 +121,6 @@ int overview_canvas_store_width = OVERVIEW_CANVAS_STORE_WIDTH; int overview_canvas_store_height = OVERVIEW_CANVAS_STORE_HEIGHT; GtkWidget *toplevel; -GdkSurface *root_window; GtkWidget *toplevel_tabs; GtkWidget *top_vbox; GtkWidget *top_notebook, *bottom_notebook, *right_notebook; @@ -1872,7 +1871,6 @@ static void activate_gui(GtkApplication *app, gpointer data) gtk_widget_realize(toplevel); gtk_widget_set_name(toplevel, "Freeciv"); - root_window = gtk_widget_get_surface(toplevel); dlg_tab_provider_prepare(); diff --git a/client/gui-gtk-4.0/gui_main.h b/client/gui-gtk-4.0/gui_main.h index 6644bc9c5f..4d9122605a 100644 --- a/client/gui-gtk-4.0/gui_main.h +++ b/client/gui-gtk-4.0/gui_main.h @@ -56,7 +56,6 @@ extern GtkWidget * unit_info_label; extern GtkWidget * unit_info_frame; extern GtkWidget * map_horizontal_scrollbar; extern GtkWidget * map_vertical_scrollbar; -extern GdkSurface * root_window; extern GtkWidget * toplevel_tabs; extern GtkWidget * top_notebook; -- 2.30.2