Skip to content

Commit 28e3ba0

Browse files
committed
save and restore more vis settings
1 parent 0effb99 commit 28e3ba0

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

TODO

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
- we save and restore scale/offset/falsecolour on imagewindow popup and
2-
popdown
3-
4-
add log, etc.
5-
61
- "reset" in display bar resets the position of scale/offset widgets, but does
72
not reset the menu items (eg. tick on falsecolour)
83

9-
- shrink as well as expand tiles in tilecache_snapshot
4+
I forget how menu items are linked to actions, reread this
105

11-
- long formula should truncate with an ellipsis
6+
gaction bound to a gsetting? do we need to add to the settings
7+
schema?
128

13-
- are we autosizing the sinkscreen threadpool?
14-
15-
maybe we shouldn't? or maybe it's a good thing?
9+
- shrink as well as expand tiles in tilecache_snapshot
1610

1711
# menu redesign
1812

src/displaybar.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,11 @@ displaybar_set_property(GObject *object,
176176

177177
switch (prop_id) {
178178
case PROP_IMAGEWINDOW:
179-
displaybar_set_imagewindow(displaybar,
180-
g_value_get_object(value));
179+
displaybar_set_imagewindow(displaybar, g_value_get_object(value));
181180
break;
182181

183182
case PROP_REVEALED:
184-
gtk_action_bar_set_revealed(
185-
GTK_ACTION_BAR(displaybar->action_bar),
183+
gtk_action_bar_set_revealed(GTK_ACTION_BAR(displaybar->action_bar),
186184
g_value_get_boolean(value));
187185
break;
188186

src/iimage.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ iimage_init(iImage *iimage)
408408
iimage->scale = 0.0;
409409
iimage->offset = 0.0;
410410
iimage->falsecolour = FALSE;
411+
iimage->log = FALSE;
412+
iimage->icc = FALSE;
411413

412414
vips_buf_init_dynamic(&iimage->caption_buffer, MAX_LINELENGTH);
413415

src/iimage.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ struct _iImage {
7171
double scale;
7272
double offset;
7373
gboolean falsecolour;
74+
gboolean log;
75+
gboolean icc;
7476

7577
/* Private ... build iobject caption here.
7678
*/

src/iimageview.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ iimageview_refresh(vObject *vobject)
183183
"scale", iimage->scale,
184184
"offset", iimage->offset,
185185
"falsecolour", iimage->falsecolour,
186+
"log", iimage->log,
187+
"icc", iimage->icc,
186188
NULL);
187189
VIPS_UNREF(tilesource);
188190
}

src/tilesource.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,6 +1448,8 @@ tilesource_new_from_iimage(iImage *iimage, int priority)
14481448
"scale", iimage->scale,
14491449
"offset", iimage->offset,
14501450
"falsecolour", iimage->falsecolour,
1451+
"log", iimage->log,
1452+
"icc", iimage->icc,
14511453
"priority", priority,
14521454
NULL);
14531455

0 commit comments

Comments
 (0)