diff options
Diffstat (limited to 'src/procman.cpp')
-rw-r--r-- | src/procman.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/procman.cpp b/src/procman.cpp index 573c49e..5860701 100644 --- a/src/procman.cpp +++ b/src/procman.cpp @@ -544,17 +544,8 @@ procman_save_config (ProcData *data) procman_save_tree_state (data->settings, data->tree, "proctree"); procman_save_tree_state (data->settings, data->disk_list, "disktreenew"); - #if GTK_CHECK_VERSION(3, 0, 0) - data->config.width = gdk_window_get_width(gtk_widget_get_window(data->app)); - data->config.height = gdk_window_get_height(gtk_widget_get_window(data->app)); - #else - gint width, height; - - gdk_drawable_get_size(gtk_widget_get_window(data->app), &width, &height); - - data->config.width = width; - data->config.height = height; - #endif + data->config.width = gdk_window_get_width(gtk_widget_get_window(data->app)); + data->config.height = gdk_window_get_height(gtk_widget_get_window(data->app)); g_settings_set_int (settings, "width", data->config.width); g_settings_set_int (settings, "height", data->config.height); |