Skip to content

Commit 9747ac9

Browse files
committed
fix save as
and more space in recover after crash
1 parent 50cca8e commit 9747ac9

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

TODO

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
- image / new, then ^V a screenshot in, save as png, crash with
2-
3-
(nip4:1072716): GLib-GObject-CRITICAL **: 12:25:04.347: invalid cast from 'Imagewindow' to 'View'
4-
5-
61
- try
72

83
nip4 ~/test.ws

src/gtk/recover.ui

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<child>
4444
<object class="GtkBox">
4545
<property name="orientation">vertical</property>
46-
<property name="spacing">2</property>
46+
<property name="spacing">5</property>
4747
<property name="margin-start">5</property>
4848
<property name="margin-end">5</property>
4949
<property name="margin-top">5</property>
@@ -83,6 +83,11 @@
8383
<child>
8484
<object class="GtkBox">
8585
<property name="orientation">horizontal</property>
86+
<property name="margin-start">5</property>
87+
<property name="margin-end">5</property>
88+
<property name="margin-top">5</property>
89+
<property name="margin-bottom">5</property>
90+
8691

8792
<child type="start">
8893
<object class="GtkButton" id="remove">

src/iimage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ iimage_graphic_save(Classmodel *classmodel,
293293
{
294294
iImage *iimage = IIMAGE(classmodel);
295295
VipsImage *image = iimage->value.ii->image;
296-
GtkWindow *window = view_get_window(VIEW(parent));
296+
GtkWindow *window = GTK_WINDOW(gtk_widget_get_root(parent));
297297

298298
if (image) {
299299
char buf[VIPS_PATH_MAX];

src/recover.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ store_add_file(const char *filename, GListStore *store)
380380
static void
381381
recover_refresh(Recover *recover)
382382
{
383-
set_glabel(recover->location, "Backups in %s", PATH_TMP);
383+
set_glabel(recover->location, "Backups in %s:", PATH_TMP);
384384

385385
GListModel *model = G_LIST_MODEL(g_list_store_new(RECOVERFILE_TYPE));
386386
(void) path_map_dir(PATH_TMP, "*.ws",

0 commit comments

Comments
 (0)