filechooserwidget: Don't look at saved window position

We don't save it anymore so no need to look at it here.
This commit is contained in:
Timm Bäder 2019-07-19 09:54:30 +02:00
parent dd3acc9014
commit 5674a3db46

View File

@ -6177,15 +6177,14 @@ gtk_file_chooser_widget_get_default_size (GtkFileChooserEmbed *chooser_embed,
GtkFileChooserWidget *impl = GTK_FILE_CHOOSER_WIDGET (chooser_embed);
GtkFileChooserWidgetPrivate *priv = gtk_file_chooser_widget_get_instance_private (impl);
GtkRequisition req;
int x, y, width, height;
int width, height;
GSettings *settings;
settings = _gtk_file_chooser_get_settings_for_widget (GTK_WIDGET (impl));
g_settings_get (settings, SETTINGS_KEY_WINDOW_POSITION, "(ii)", &x, &y);
g_settings_get (settings, SETTINGS_KEY_WINDOW_SIZE, "(ii)", &width, &height);
if (x >= 0 && y >= 0 && width > 0 && height > 0)
if (width > 0 && height > 0)
{
*default_width = width;
*default_height = height;