]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'get_attribute_string_value_from_widget'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 30 Sep 2021 02:37:46 +0000 (19:37 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Oct 2021 02:58:24 +0000 (19:58 -0700)
cmd/smyrna/gui/gui.c
cmd/smyrna/gui/gui.h

index 6a5d6fa3814f2f381a493d4ac4a6a48810fd4633..1db3f882dfb8e53ab49e8030007fce05bbb58bc3 100644 (file)
@@ -125,32 +125,6 @@ int update_graph_properties(Agraph_t * graph)      //updates graph from gui
     return 1;
 }
 
-
-
-char *get_attribute_string_value_from_widget(attribute * att)
-{
-    GdkColor color;
-    switch (att->Type) {
-    case 'F':
-       sprintf(guibuffer, "%f",
-               gtk_spin_button_get_value((GtkSpinButton *) att->
-                                         attrWidget));
-       return guibuffer;
-       break;
-    case 'C':
-       gtk_color_button_get_color((GtkColorButton *) att->attrWidget,
-                                  &color);
-       sprintf(guibuffer, "#%x%x%x", color.red / 255, color.green / 255,
-               color.blue / 255);
-       return guibuffer;
-       break;
-    default:
-       strcpy(guibuffer,
-              gtk_entry_get_text((GtkEntry *) att->attrWidget));
-       return guibuffer;
-    }
-}
-
 void load_attributes(void)
 {
     FILE *file;
index 74f88e8383a758c5b70d3dbd25a88c5eb5c12332..4e09b58e4c28764bebaef9449d9b31bcbeddcb67 100644 (file)
@@ -46,8 +46,6 @@ extern "C" {
     void update_object_properties(int typeIndex, Agraph_t * g);        //updates objects from gui(node ,edge, cluster)
     int load_object_properties(gve_element typeIndex, Agraph_t * g);
     void load_attributes(void);        //loads attributes from a text file
-    char *get_attribute_string_value_from_widget(attribute * att);
-
 
 //GTK helpre functions
 //void Color_Widget_bg (int r, int g, int b, GtkWidget *widget);        //change background color