aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-08-30 14:47:00 +0200
committerThomas White <taw@bitwiz.org.uk>2013-08-30 14:47:00 +0200
commitbad270c105bb5e7021ea850578903fda8e90d2e4 (patch)
tree0170f5f6ddd945f7c6b2310924e7749f969b3382 /src
parentd273b8aa021db863d944b2725a6777f0dcc9398b (diff)
Add is_image field to struct frame
Diffstat (limited to 'src')
-rw-r--r--src/frame.h3
-rw-r--r--src/mainwindow.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h
index 764cddc..6ee748b 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -111,6 +111,9 @@ struct frame
/* True if this frame should be deleted on the next mouse click */
int empty;
+
+ /* True if the aspect ratio of this frame should be maintained */
+ int is_image;
};
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 283bdc8..a74bf0a 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1407,6 +1407,7 @@ static struct frame *create_frame(struct presentation *p, double x, double y,
fr->lop.y = y;
fr->lop.w = w;
fr->lop.h = h;
+ fr->is_image = 0;
return fr;
}
@@ -1782,6 +1783,7 @@ static void dnd_receive(GtkWidget *widget, GdkDragContext *drag_context,
p->start_corner_y, w, h);
fr->sc = sc;
fr->sc_len = len;
+ fr->is_image = 1;
show_hierarchy(p->cur_edit_slide->top, "");
rerender_slide(p);
set_selection(p, fr);