diff options
author | infirit <[email protected]> | 2014-05-17 03:34:22 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-05-17 19:10:46 +0200 |
commit | 3ce63cc9bc7b522f54f5f0409e53ba9cd3cefdcd (patch) | |
tree | 8bdfc10fbc38fe34d199d1dafebe9c686d90770e /src | |
parent | 2e4577b38bcac84eb4ec795fc8082ddb22d608cb (diff) | |
download | engrampa-3ce63cc9bc7b522f54f5f0409e53ba9cd3cefdcd.tar.bz2 engrampa-3ce63cc9bc7b522f54f5f0409e53ba9cd3cefdcd.tar.xz |
Also use gdk_window_get_* for gtk2
Diffstat (limited to 'src')
-rw-r--r-- | src/fr-window.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/fr-window.c b/src/fr-window.c index d45a21c..e23377c 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -702,12 +702,8 @@ fr_window_close (FrWindow *window) if (gtk_widget_get_realized (GTK_WIDGET (window))) { int width, height; - #if GTK_CHECK_VERSION(3, 0, 0) width = gdk_window_get_width(gtk_widget_get_window(GTK_WIDGET(window))); height = gdk_window_get_height(gtk_widget_get_window(GTK_WIDGET(window))); - #else - gdk_drawable_get_size(gtk_widget_get_window(GTK_WIDGET(window)), &width, &height); - #endif g_settings_set_int (window->priv->settings_ui, PREF_UI_WINDOW_WIDTH, width); g_settings_set_int (window->priv->settings_ui, PREF_UI_WINDOW_HEIGHT, height); |