From: Matthew Fernandez Date: Thu, 30 Sep 2021 02:37:46 +0000 (-0700) Subject: smyrna: remove unused 'get_attribute_string_value_from_widget' X-Git-Tag: 2.49.2~25^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7687bc4b8964f5257e61a248270960572435532;p=graphviz smyrna: remove unused 'get_attribute_string_value_from_widget' --- diff --git a/cmd/smyrna/gui/gui.c b/cmd/smyrna/gui/gui.c index 6a5d6fa38..1db3f882d 100644 --- a/cmd/smyrna/gui/gui.c +++ b/cmd/smyrna/gui/gui.c @@ -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; diff --git a/cmd/smyrna/gui/gui.h b/cmd/smyrna/gui/gui.h index 74f88e838..4e09b58e4 100644 --- a/cmd/smyrna/gui/gui.h +++ b/cmd/smyrna/gui/gui.h @@ -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