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;
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