comparison src/gtkrequest.c @ 11780:8cb75ba77f9d

[gaim-migrate @ 14071] I've been time travelling, I bumped into Gtk 2.0 on my way. Gaim now works with Gtk 2.0 again. Next stop: gtk 1.2 ... erm. what? ... NO! PS. resiak: I won! committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 24 Oct 2005 00:31:41 +0000
parents 4db38b374d3f
children bfbb1798535e
comparison
equal deleted inserted replaced
11779:80af53b5b3c5 11780:8cb75ba77f9d
24 */ 24 */
25 #include "internal.h" 25 #include "internal.h"
26 #include "gtkgaim.h" 26 #include "gtkgaim.h"
27 27
28 #include "prefs.h" 28 #include "prefs.h"
29 #include "util.h"
29 30
30 #include "gtkimhtml.h" 31 #include "gtkimhtml.h"
31 #include "gtkimhtmltoolbar.h" 32 #include "gtkimhtmltoolbar.h"
32 #include "gtkrequest.h" 33 #include "gtkrequest.h"
33 #include "gtkutils.h" 34 #include "gtkutils.h"
739 740
740 model = gtk_entry_completion_get_model (completion); 741 model = gtk_entry_completion_get_model (completion);
741 742
742 gtk_tree_model_get_value(model, iter, 2, &val1); 743 gtk_tree_model_get_value(model, iter, 2, &val1);
743 tmp = g_value_get_string(&val1); 744 tmp = g_value_get_string(&val1);
744 if (tmp != NULL && g_str_has_prefix(tmp, key)) 745 if (tmp != NULL && gaim_str_has_prefix(tmp, key))
745 { 746 {
746 g_value_unset(&val1); 747 g_value_unset(&val1);
747 return TRUE; 748 return TRUE;
748 } 749 }
749 g_value_unset(&val1); 750 g_value_unset(&val1);
750 751
751 gtk_tree_model_get_value(model, iter, 3, &val2); 752 gtk_tree_model_get_value(model, iter, 3, &val2);
752 tmp = g_value_get_string(&val2); 753 tmp = g_value_get_string(&val2);
753 if (tmp != NULL && g_str_has_prefix(tmp, key)) 754 if (tmp != NULL && gaim_str_has_prefix(tmp, key))
754 { 755 {
755 g_value_unset(&val2); 756 g_value_unset(&val2);
756 return TRUE; 757 return TRUE;
757 } 758 }
758 g_value_unset(&val2); 759 g_value_unset(&val2);