[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/src log_window.c,1.7,1.8
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/src log_window.c,1.7,1.8 |
Date: |
Tue, 14 Jan 2003 16:42:09 -0500 |
Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv18281
Modified Files:
log_window.c
Log Message:
wtf did I remove this line
Index: log_window.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/log_window.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- log_window.c 14 Jan 2003 21:20:57 -0000 1.7
+++ log_window.c 14 Jan 2003 21:42:05 -0000 1.8
@@ -206,9 +206,9 @@
gboolean looped=FALSE;
/* if user wants to search */
if (event->keyval == GDK_Return) {
- gchar * text = gtk_entry_get_text(GTK_ENTRY(widget));
+ gchar * text = gtk_editable_get_chars(GTK_EDITABLE(widget),0,-1);
strip_html(text);
- if(strlen(text) == 0)
+ if(!text || strlen(text) == 0)
return TRUE;
eb_debug(DBG_CORE,"search: begin at cur_log:%d\n",cur_log);
@@ -279,6 +279,8 @@
total_length+(int)(strstr(no_html_text,text)-no_html_text),
total_length+(int)(strstr(no_html_text,text)-no_html_text)+strlen(text));
total_length+=strlen(no_html_text);
+ if (text)
+ free(text);
return TRUE;
} else if (no_html_text)
total_length+=strlen(no_html_text);
@@ -287,6 +289,7 @@
/* next line */
s_list=s_list->next;
cur_pos++;
+ last_pos = cur_pos;
}
/* next conversation */
eb_debug(DBG_CORE,"search: next one\n");
@@ -295,6 +298,8 @@
current_row=cur_log;
}
+ if (text)
+ free(text);
}
return TRUE;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/src log_window.c,1.7,1.8,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm/src log_window.c,1.6,1.7
- Next by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.110,1.111 configure.in,1.107,1.108
- Previous by thread:
[Ayttm-commits] CVS: ayttm/src log_window.c,1.6,1.7
- Next by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.110,1.111 configure.in,1.107,1.108
- Index(es):