]> granicus.if.org Git - graphviz/commitdiff
smyrna warnings clean up
authorarif <devnull@localhost>
Tue, 10 Nov 2009 17:33:50 +0000 (17:33 +0000)
committerarif <devnull@localhost>
Tue, 10 Nov 2009 17:33:50 +0000 (17:33 +0000)
cmd/smyrna/gltemplate.c
cmd/smyrna/gui/appmouse.c
cmd/smyrna/gui/glcompui.c
cmd/smyrna/gui/gui.c
cmd/smyrna/gui/topviewsettings.c
cmd/smyrna/gvprpipe.c
cmd/smyrna/hotkeymap.c
cmd/smyrna/main.c
cmd/smyrna/selection.c

index fb4d21ea50dca581d7a9ac049ecee581e5277b95..8757fd71dcd8cee94e6442c7336ba49b5e845cee 100755 (executable)
@@ -321,6 +321,8 @@ static gboolean key_press_event(GtkWidget * widget, GdkEventKey * event, gpointe
 {
     view->keymap.down=1;
     view->keymap.keyVal=event->keyval;
+        return FALSE;
+
 
 
 }
@@ -330,6 +332,8 @@ static gboolean key_release_event(GtkWidget * widget, GdkEventKey * event, gpoin
     view->keymap.down=0;
     view->keymap.keyVal=0;
     originate_distorded_coordinates(view->Topview);
+        return FALSE;
+
 
 }
 
index 1d7146735a43db0769115669a0307604b699b703..bcd96d84f2ca9391c5b500ef4a69b02689761cc9 100644 (file)
@@ -26,7 +26,7 @@
 
     static float prevX=0;
     static float prevY=0;
-static int apply_actions(ViewInfo* v,int x,int y)
+static void apply_actions(ViewInfo* v,int x,int y)
 {
     int a;
     a=get_mode(v);
index 6c6f823e8ec8d354e4f32e14220b40643639ef6f..2cdeabcdb5ad658f4460ce3996204a0a40e93ddc 100644 (file)
@@ -39,7 +39,7 @@ static glCompButton *rotateBtn;
 static glCompButton *toFisheye;
 static glCompButton *toNormal;
 static glCompImage *imgFisheye;
-static glCompButton *img3D;
+static glCompImage *img3D;
 static glCompButton *panBtn;
 
 
@@ -130,7 +130,7 @@ static void switch2D3D(void *obj, GLfloat x, GLfloat y,
            view->active_camera = -1;   /*set to camera */
            glCompButtonShow(to3DBtn);
            glCompButtonHide(to2DBtn);
-           panBtn->common.callbacks.click(panBtn, (GLfloat) 0,
+           panBtn->common.callbacks.click((glCompObj*)panBtn, (GLfloat) 0,
                                           (GLfloat) 0,
                                           (glMouseButtonType) 0);
            img3D->common.visible = 0;
index 71cc05b0c1ebbe34b4a88d9dbeb951e3cce2e008..e31c31cf2abf2c6ded0b1708717ff56c5c504f7e 100755 (executable)
@@ -515,6 +515,6 @@ void append_textview(GtkTextView * textv, const char *s, size_t bytes)
     /*set iterator to the end of the buffer */
     gtk_text_buffer_get_end_iter(gtkbuf, &endit);
     /* insert buf to the end */
-    gtk_text_buffer_insert(gtkbuf, &endit, s, bytes);
+    gtk_text_buffer_insert(gtkbuf, &endit, s, (gint)bytes);
 
 }
index 1eb98d2d6552200614632b82075809082d0ad626..60390bef79dd435f2626ccc2ec12949fd8a45121 100644 (file)
@@ -89,7 +89,7 @@ static int get_text_widget_to_attribute(char *attribute, char *widget_name,
     if (strlen(attribute) > 512)
        return 0;
     agattr(g, AGRAPH, attribute, 
-           gtk_entry_get_text((GtkEntry *)
+           (char*)gtk_entry_get_text((GtkEntry *)
                               glade_xml_get_widget(xml, widget_name)));
     return 1;
 }
index 18dcb2d926a9f4ce3457306ba7b85c9834921edb..d27497915695ca493ad62890060719e3b95d1f8a 100644 (file)
@@ -37,7 +37,7 @@ static ssize_t outfn(void *sp, const char *buf, size_t nbyte, void *dp)
                    nbyte);
     append_textview((GtkTextView *)
                    glade_xml_get_widget(xml, "mainconsole"), buf, nbyte);
-    return nbyte;
+    return (ssize_t)nbyte;
 }
 
 #ifdef UNUSED
index f6e22375cc21bd97bbf8165973de23ea58841f45..891b2e30fae3c772256d695c24415b781fcdf124 100644 (file)
@@ -45,6 +45,7 @@ int static get_button(const char* s)
        return B_RCTRL;
     if (strcmp(s,"0")==0)
        return 0;
+    return 0;
 
 }
 int static get_view_mode(const char* s)
index e0c58bea57e2c0825cba9e810adf1d12a4908534..77dd7cf77d00eb3239e65a518627a72f45ca75a7 100755 (executable)
@@ -79,11 +79,11 @@ char *smyrnaPath(char *suffix)
     assert(smyrnaDir);
 
     if (!buf) {
-       baselen = strlen(smyrnaDir) + 2;
+       baselen = (int)strlen(smyrnaDir) + 2;
        buflen = baselen + 100;
        buf = N_NEW(buflen, char);
     }
-    slen = strlen(suffix);
+    slen = (int)strlen(suffix);
     if (baselen + slen > buflen) {
        buflen = baselen + slen;
        buf = realloc(buf, buflen);
@@ -232,8 +232,8 @@ int main(int argc, char *argv[])
 
     gladewidget = glade_xml_get_widget(xml, "hbox10");
     graphComboBox = (GtkComboBox *) gtk_combo_box_new_text();
-    gtk_box_pack_end(gladewidget, graphComboBox, 1, 1, 10);
-    gtk_widget_show(graphComboBox);
+    gtk_box_pack_end((GtkBox*)gladewidget, (GtkWidget*)graphComboBox, 1, 1, 10);
+    gtk_widget_show((GtkWidget*)graphComboBox);
     view->graphComboBox = graphComboBox;
     gtk_main();
 
index 288acab10bc1722b283dd93380f0503b07e40bc1..667ec46006aa519b0e0e9018e2d046479e0d0aad 100755 (executable)
@@ -525,6 +525,8 @@ int lineintersects(float X1, float X2, float Y1, float Y2)
     int intersects, in;
     RX = view->Selection.X;
     RY = view->Selection.Y;
+    RH=view->Selection.H;
+    RW=view->Selection.W;
     if ((is_point_in_rectangle(X1, Y1, RX, RY, RW, RH))
        && (is_point_in_rectangle(X2, Y2, RX, RY, RW, RH)))
        return 1;
@@ -575,7 +577,7 @@ int is_point_in_rectangle(float X, float Y, float RX, float RY, float RW,
 
 
 
-static int select_topview_node(topview_node * n)
+static void select_topview_node(topview_node * n)
 {
     static float x1,y1,x2,y2,x,y;
     static int sel_type=0;  /*0:select all , 1:only nodes 2:only edges*/
@@ -609,7 +611,7 @@ static int select_topview_node(topview_node * n)
     }
 }
 
-static int select_topview_edge(topview_edge* e)
+static void select_topview_edge(topview_edge* e)
 {
     static float x1,y1,x2,y2,n1x,n1y,n2x,n2y;
     static int sel_type=0;  /*0:select all , 1:only nodes 2:only edges*/