commit 4641514a85ef2898b6328c9ea1b0d2dfd0229536
Author: Daniele Forsi <da...@fo...>
Date: Thu Jul 12 11:32:01 2012 +0200
Fix setting default width of main window
Only used when window Geometry couldn't be read from
~/.gtkpod/session/anjuta.session file.
src/anjuta-app.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/anjuta-app.c b/src/anjuta-app.c
index b78e345..9f4d6db 100644
--- a/src/anjuta-app.c
+++ b/src/anjuta-app.c
@@ -650,7 +650,7 @@ void anjuta_app_set_geometry(AnjutaApp *app, const gchar *geometry) {
width = gdk_screen_width() - 10;
height = gdk_screen_height() - 25;
width = (width < 790) ? width : 790;
- height = (height < 575) ? width : 575;
+ height = (height < 575) ? height : 575;
if (gtk_widget_get_realized (GTK_WIDGET (app)) == FALSE) {
gtk_window_set_default_size(GTK_WINDOW (app), width, height);
gtk_window_move(GTK_WINDOW (app), posx, posy);
|