Hi,

I have a question about positioning of the file-chooser dialog.
The position of the dialog is not correct. I'm using the latest stable
version of GTK 2.14.3. The code is compiled on win32.

----------- CODE ------------------------------------------------------

GtkWidget *dialog;

dialog = gtk_file_chooser_dialog_new ("Open File",
                                      parent_window,
                                      GTK_FILE_CHOOSER_ACTION_OPEN,
                                      GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                                      GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
                                      NULL);

if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT)
  {
    char *filename;

    filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
    open_file (filename);
    g_free (filename);
  }

gtk_widget_destroy (dialog);

-----------------------------------------------------------------------

Result is that the dialog is moved towards the lower left corner. It seems
to me that the size of the window is not correct. Could it be?

Can someone explain me why is this happening.

Regards,
Tomas Soltys

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to