diff console/gntconv.c @ 14861:dd2ef00759a7

[gaim-migrate @ 17630] Remember the size of the debug window, and remember the correct size of the conversation windows after resizing. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 30 Oct 2006 21:48:42 +0000
parents ac0ce6064000
children c01f62c83647
line wrap: on
line diff
--- a/console/gntconv.c	Mon Oct 30 05:27:31 2006 +0000
+++ b/console/gntconv.c	Mon Oct 30 21:48:42 2006 +0000
@@ -157,10 +157,12 @@
 }
 
 static void
-size_changed_cb(GntWidget *w, int width, int height)
+size_changed_cb(GntWidget *widget, int width, int height)
 {
-	gaim_prefs_set_int(PREF_ROOT "/size/width", width);
-	gaim_prefs_set_int(PREF_ROOT "/size/height", height);
+	int w, h;
+	gnt_widget_get_size(widget, &w, &h);
+	gaim_prefs_set_int(PREF_ROOT "/size/width", w);
+	gaim_prefs_set_int(PREF_ROOT "/size/height", h);
 }
 
 static void