[Glade-devel] Window mess with glade-3



--Signature=_Wed__30_Jun_2004_01_13_21_+0200_Jb_4Db313GoYIlqc
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Hello.
I've downloaded a glade-3 from cvs, to check out.
It compiles fine, but...
The main window is displayed in a left upper corner of my crt. The
position of a dialogs, i.e. like glade_util_file_chooser_new are
probably set to display over the main window, which is smaller than
dialogs. The result is - that i can only see about 1/3 of the dialog
window.
I think, that the gtk+ should take care of that, correct me, if i'm
wrong.
For now to avoid this i've changed:

--- ./glade-utils.c     2004-05-21 22:17:19.000000000 +0200
+++ ./glade-utils-ok.c  2004-06-30 00:31:50.000000000 +0200
@@ -306,12 +306,15 @@
 glade_util_file_chooser_new (const gchar *title, GtkWindow *parent, 
                             GtkFileChooserAction action)
 {
+       GtkWidget *filechoose;
        g_assert (action == GTK_FILE_CHOOSER_ACTION_OPEN || action ==
GTK_FILE_CHOOSER_ACTION_SAVE);-       return gtk_file_chooser_dialog_new
(title, parent, action,+       filechoose=gtk_file_chooser_dialog_new
(title, parent, action,                                           
GTK_STOCK_CANCEL,                                           
GTK_RESPONSE_CANCEL,                                            action
== GTK_FILE_CHOOSER_ACTION_OPEN ? GTK_STOCK_OPEN : GTK_STOCK_SAVE,
GTK_RESPONSE_OK,                                            NULL);
+       gtk_window_set_position((GtkWindow
*)filechoose,GTK_WIN_POS_CENTER_ALWAYS);+       return filechoose;
 }
 
 /**
-- 
Regards,
Michal Byrecki

--Signature=_Wed__30_Jun_2004_01_13_21_+0200_Jb_4Db313GoYIlqc
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA4feT5XTnZad2rEMRAlnSAJkB34zv8vjnZRV+jG8zaAW7n2z1DgCfbHrZ
oU25cxeMQvf5tmou6jc4+N8=
=p6ki
-----END PGP SIGNATURE-----

--Signature=_Wed__30_Jun_2004_01_13_21_+0200_Jb_4Db313GoYIlqc--




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]