[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/gui gtk.cpp
From: |
Udo Giacomozzi |
Subject: |
[Gnash-commit] gnash/gui gtk.cpp |
Date: |
Wed, 18 Jul 2007 09:18:43 +0000 |
CVSROOT: /cvsroot/gnash
Module name: gnash
Changes by: Udo Giacomozzi <udog> 07/07/18 09:18:43
Modified files:
gui : gtk.cpp
Log message:
Add a comment about gtk_widget_set_size_request
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk.cpp?cvsroot=gnash&r1=1.98&r2=1.99
Patches:
Index: gtk.cpp
===================================================================
RCS file: /cvsroot/gnash/gnash/gui/gtk.cpp,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -b -r1.98 -r1.99
--- gtk.cpp 18 Jul 2007 09:08:31 -0000 1.98
+++ gtk.cpp 18 Jul 2007 09:18:42 -0000 1.99
@@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
-/* $Id: gtk.cpp,v 1.98 2007/07/18 09:08:31 udog Exp $ */
+/* $Id: gtk.cpp,v 1.99 2007/07/18 09:18:42 udog Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -156,6 +156,13 @@
gtk_window_set_title(GTK_WINDOW(_window), title);
if (!_xid) {
+
+ // This sets the *minimum* size for the drawing area and thus will
+ // also resize the window.
+ // Advantage: The window is sized correctly, no matter what other
+ // widgets are visible
+ // Disadvantage: The window cannot be shrinked, which is bad.
+
gtk_widget_set_size_request(_drawing_area, width, height);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/gui gtk.cpp,
Udo Giacomozzi <=