**********************************************************/
#include <stdio.h>
+#include <strings.h>
#include "compat.h"
#include <stdlib.h>
#include "gui.h"
l->with_widgets=with_widgets;
/*create filter widgets*/
- gtk_widget_add_events(glade_xml_get_widget(xml, "frmObject"),
+/* gtk_widget_add_events(glade_xml_get_widget(xml, "frmObject"),
// GDK_BUTTON_MOTION_MASK = 1 << 4,
GDK_BUTTON_MOTION_MASK |
GDK_POINTER_MOTION_MASK |
GDK_BUTTON_RELEASE_MASK |
GDK_SCROLL | GDK_VISIBILITY_NOTIFY_MASK);
- g_signal_connect((gpointer)glade_xml_get_widget(xml, "frmObject"), "motion_notify_event", G_CALLBACK(attr_label_motion), NULL);
+ g_signal_connect((gpointer)glade_xml_get_widget(xml, "frmObject"), "motion_notify_event", G_CALLBACK(attr_label_motion), NULL);*/
if(with_widgets)
{
for (id ; id < MAX_FILTERED_ATTR_COUNT ; id ++)
{
attr_t* a1=*(attr_t**)a;
attr_t* a2=*(attr_t**)b;
- return stricmp(a1->name,a2->name);
+ return strcasecmp(a1->name,a2->name);
}
static void attr_list_sort(attr_list* l)
while ( low <= high ) {
middle = ( low + high ) / 2;
- res=stricmp(searchKey,l->attributes[middle]->name);
+ res=strcasecmp(searchKey,l->attributes[middle]->name);
if ( res==0) {
return l->attributes[middle];
}
middle = ( low + high ) / 2;
strncpy ( buf, l->attributes[middle]->name, strlen(searchKey));
buf[strlen(searchKey)]='\0';
- res=stricmp(searchKey,buf);
+ res=strcasecmp(searchKey,buf);
if ( res==0) {
return l->attributes[middle];
}
at=sl->attributes[at->index - 1];
strncpy ( buf, at->name, strlen(prefix));
buf[strlen(prefix)]='\0';;
- res=stricmp(prefix,buf);
+ res=strcasecmp(prefix,buf);
}
res=0;
while((at->index <sl->attr_count) && (res == 0))
at=sl->attributes[at->index + 1];
strncpy ( buf, at->name, strlen(prefix));
buf[strlen(prefix)]='\0';
- res=stricmp(prefix,buf);
+ res=strcasecmp(prefix,buf);
if((res == 0) && (at->objType[objKind]==1))
attr_list_add(tl,new_attr_ref(at));
}
for (ind=0;ind < fl->attr_count;ind++)
{
- if( stricmp(prefix,fl->attributes[ind]->name)==0)/*an existing attribute*/
+ if( strcasecmp(prefix,fl->attributes[ind]->name)==0)/*an existing attribute*/
{
if(get_object_type()==AGRAPH)