[file-roller] don't use gdk_drawable_get_size
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [file-roller] don't use gdk_drawable_get_size
- Date: Mon,  4 Oct 2010 08:34:14 +0000 (UTC)
commit 245271bfd9c959e3bbc913eec8e291746cdc221c
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Oct 4 10:10:43 2010 +0200
    don't use gdk_drawable_get_size
 src/fr-window.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 9c258a0..c693fa6 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -697,7 +697,8 @@ fr_window_close (FrWindow *window)
 	if (gtk_widget_get_realized (GTK_WIDGET (window))) {
 		int width, height;
 
-		gdk_drawable_get_size (gtk_widget_get_window (GTK_WIDGET (window)), &width, &height);
+		width = gtk_widget_get_allocated_width (GTK_WIDGET (window));
+		height = gtk_widget_get_allocated_height (GTK_WIDGET (window));
 		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);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]