strcat(buf,agnameof(e->Node1->Node));
strcat(buf," - ");
strcat(buf,agnameof(e->Node2->Node));
-
dx = (x1+x2)/2.0;
dy = (y1+y2)/2.0;
dz = (z1+z2)/2.0;
_BB void mCloseSlot(GtkWidget * widget, gpointer user_data);
_BB void mOptionsSlot(GtkWidget * widget, gpointer user_data);
_BB void mQuitSlot(GtkWidget * widget, gpointer user_data);
-
//edit
_BB void mCutSlot(GtkWidget * widget, gpointer user_data);
_BB void mCopySlot(GtkWidget * widget, gpointer user_data);
buf = agget(view->g[view->activeGraph], attribute);
if ((!buf) || (strcmp(buf, "") == 0))
buf = agget(view->default_attributes, attribute);
- if (buf) {
- colorxlate(buf, &cl, RGBA_DOUBLE);
- color.red = (int) (cl.u.RGBA[0] * 65535.0);
- color.green = (int) (cl.u.RGBA[1] * 65535.0);
- color.blue = (int) (cl.u.RGBA[2] * 65535.0);
-// gdk_color_parse(buf,&color);
+ if (buf)
+ {
+ colorxlate(buf, &cl, RGBA_DOUBLE);
+ color.red = (int) (cl.u.RGBA[0] * 65535.0);
+ color.green = (int) (cl.u.RGBA[1] * 65535.0);
+ color.blue = (int) (cl.u.RGBA[2] * 65535.0);
gtk_color_button_set_color((GtkColorButton *)
glade_xml_get_widget(xml, widget_name),
&color);
gtkbuf = gtk_text_view_get_buffer((GtkTextView*) glade_xml_get_widget(xml,"gvprtextoutput"));
/*set iterator to the end of the buffer*/
gtk_text_buffer_get_end_iter (gtkbuf,&endit);
- /*insert buf to the end*/
+
+ /* insert buf to the end */
gtk_text_buffer_insert(gtkbuf,&endit,buf,nbyte);
return nbyte;
}
extern int SelectEllipse(sdot_op * op);
extern int SelectPolygon(sdot_op * op);
extern int SelectPolyline(sdot_op * op);
+
extern int SelectText(sdot_op * op);
extern int SelectImage(sdot_op * op);
#include "xdot.h"
#include "cgraph.h"
+
void init_viewport(ViewInfo * view);
void set_viewport_settings_from_template(ViewInfo * view, Agraph_t *);
void clear_viewport(ViewInfo * view);
{
int idx;
if (!s)
+ {
return ;
-
+ }
for (idx=0;idx < s->cnt ; idx ++)
{
if (s->obj[idx])