X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=gtk-gui.c;h=39703ff60eaad94102aad648fe41b2da687ac92c;hb=473fb14b5612f4ff48503ca5e8a07ae42aecd1de;hp=351e7b9f4812d717cafc06e83b19e583c39877ef;hpb=2d02ac402ac8086d946f8a815104b30142ec83e5;p=ext%2Fsubsurface.git diff --git a/gtk-gui.c b/gtk-gui.c index 351e7b9..39703ff 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -558,7 +558,7 @@ static GtkNotebook *create_new_notebook_window(GtkNotebook *source, gtk_drag_dest_set(notebook, 0, NULL, 0, 0); gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 6); gtk_widget_get_allocation(page, &allocation); - gtk_widget_set_size_request(notebook, allocation.width, allocation.height); + gtk_window_set_default_size(GTK_WINDOW(win), allocation.width, allocation.height); gtk_widget_show_all(win); return GTK_NOTEBOOK(notebook); @@ -989,7 +989,7 @@ void update_progressbar(progressbar_t *progress, double value) void set_filename(const char *filename) { - if (filename) + if (!existing_filename && filename) existing_filename = strdup(filename); return; }