GtkFileChooserDialog position
- From: "Tomas Soltys" <tomas soltys range-software com>
- To: gtk-app-devel-list gnome org
- Subject: GtkFileChooserDialog position
- Date: Thu, 16 Oct 2008 09:55:01 +0200 (CEST)
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]