From: ellson Date: Mon, 5 Nov 2007 15:56:27 +0000 (+0000) Subject: add FIXME notes X-Git-Tag: LAST_LIBGRAPH~32^2~5084 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d04e7e9f1c761b877743dbc08394d6d5c4bd497;p=graphviz add FIXME notes --- diff --git a/lib/gvc/gvevent.c b/lib/gvc/gvevent.c index 68214c466..61838ec9e 100644 --- a/lib/gvc/gvevent.c +++ b/lib/gvc/gvevent.c @@ -542,6 +542,12 @@ static int zoom_out_cb(GVJ_t * job) static int toggle_fit_cb(GVJ_t * job) { +/*FIXME - should allow for margins */ +/* - similar zoom_to_fit code exists in: */ +/* plugin/gtk/callbacks.c */ +/* plugin/xlib/gvdevice_xlib.c */ +/* lib/gvc/gvevent.c */ + job->fit_mode = !job->fit_mode; if (job->fit_mode) { /* FIXME - this code looks wrong */ diff --git a/plugin/gtk/callbacks.c b/plugin/gtk/callbacks.c index d04789d25..c55312c12 100644 --- a/plugin/gtk/callbacks.c +++ b/plugin/gtk/callbacks.c @@ -332,6 +332,12 @@ on_drawingarea1_configure_event (GtkWidget *widget, GVJ_t *job; double zoom_to_fit; +/*FIXME - should allow for margins */ +/* - similar zoom_to_fit code exists in: */ +/* plugin/gtk/callbacks.c */ +/* plugin/xlib/gvdevice_xlib.c */ +/* lib/gvc/gvevent.c */ + job = (GVJ_t *)g_object_get_data(G_OBJECT(widget),"job"); if (! job->has_been_rendered) { zoom_to_fit = MIN((double) event->width / (double) job->width, diff --git a/plugin/xlib/gvdevice_xlib.c b/plugin/xlib/gvdevice_xlib.c index 6be9ae235..cfdce63f1 100644 --- a/plugin/xlib/gvdevice_xlib.c +++ b/plugin/xlib/gvdevice_xlib.c @@ -82,6 +82,12 @@ typedef struct window_xlib_s { static void handle_configure_notify(GVJ_t * job, XConfigureEvent * cev) { +/*FIXME - should allow for margins */ +/* - similar zoom_to_fit code exists in: */ +/* plugin/gtk/callbacks.c */ +/* plugin/xlib/gvdevice_xlib.c */ +/* lib/gvc/gvevent.c */ + if (job->fit_mode) job->zoom = MIN((double) cev->width / (double) job->width, (double) cev->height / (double) job->height);