]> granicus.if.org Git - graphviz/commitdiff
add FIXME notes
authorellson <devnull@localhost>
Mon, 5 Nov 2007 15:56:27 +0000 (15:56 +0000)
committerellson <devnull@localhost>
Mon, 5 Nov 2007 15:56:27 +0000 (15:56 +0000)
lib/gvc/gvevent.c
plugin/gtk/callbacks.c
plugin/xlib/gvdevice_xlib.c

index 68214c4666437cbca150b08f03deaf2785f3a5cc..61838ec9e838ceeea731ec55f1b6f5a89c158ef5 100644 (file)
@@ -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 */
index d04789d257f8fcd250beba1065e5c3ca76ab2e22..c55312c120ccc183a668031670c29d2a15dbdb80 100644 (file)
@@ -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,
index 6be9ae2355b4e731b00deda79635ff5ef41f3104..cfdce63f15bfe6c213b8909072481c3e290450ed 100644 (file)
@@ -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);