]> granicus.if.org Git - graphviz/commitdiff
consolidating file output into gvdevice framework
authorellson <devnull@localhost>
Wed, 3 Oct 2007 16:59:11 +0000 (16:59 +0000)
committerellson <devnull@localhost>
Wed, 3 Oct 2007 16:59:11 +0000 (16:59 +0000)
plugin/gtk/gvdevice_gtk.c

index 95f6fdea65b66f1efcf559616c45b55e3e549f6c..d616458083864f503437fd664246e4e61cfcdae6 100644 (file)
@@ -68,7 +68,7 @@ attr_value_edited_cb(GtkCellRendererText *renderer, gchar *pathStr, gchar *newTe
        gtk_tree_path_free(path);
 }
 
-static void initialize_gtk(GVJ_t *firstjob)
+static void gtk_initialize(GVJ_t *firstjob)
 {
     Display *dpy;
     const char *display_name = NULL;
@@ -107,7 +107,7 @@ static void initialize_gtk(GVJ_t *firstjob)
     firstjob->device_sets_dpi = TRUE;
 }
 
-static void finalize_gtk(GVJ_t *firstjob)
+static void gtk_finalize(GVJ_t *firstjob)
 {
     GVJ_t *job;
     GtkWidget *window1, *drawingarea1, *drawingarea2, *treeview2;
@@ -158,10 +158,9 @@ static gvdevice_features_t device_features_gtk = {
 };
 
 static gvdevice_engine_t device_engine_gtk = {
-    initialize_gtk,
-    NULL,
-    NULL,
-    finalize_gtk,
+    gtk_initialize,
+    NULL,                      /* gtk_format */
+    gtk_finalize,
 };
 #endif
 #endif