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

Attachment: pgpAGwwTRo0Y5.pgp
Description: PGP signature

Reply via email to