mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
Merge branch 'minor-fixes' of git://github.com/dirkhh/subsurface
* 'minor-fixes' of git://github.com/dirkhh/subsurface: Fix "Keep window size for new notebook pages" to not set minimum size Make the first filename on the command line the default filename
This commit is contained in:
commit
abaed4c275
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue