aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-search-bar.c
diff options
context:
space:
mode:
authorThomas Meire <blackskad@gmail.com>2010-01-16 23:41:50 +0800
committerThomas Meire <blackskad@gmail.com>2010-01-21 08:20:08 +0800
commit993766233887be988d3864c64be85c83989d42ad (patch)
tree22a1a36a5f45f5a03aaae9a0df0e8fa0035cfc97 /libempathy-gtk/empathy-search-bar.c
parentaab9053d638c375560d8784eee995969b004b5ba (diff)
downloadgsoc2013-empathy-993766233887be988d3864c64be85c83989d42ad.tar
gsoc2013-empathy-993766233887be988d3864c64be85c83989d42ad.tar.gz
gsoc2013-empathy-993766233887be988d3864c64be85c83989d42ad.tar.bz2
gsoc2013-empathy-993766233887be988d3864c64be85c83989d42ad.tar.lz
gsoc2013-empathy-993766233887be988d3864c64be85c83989d42ad.tar.xz
gsoc2013-empathy-993766233887be988d3864c64be85c83989d42ad.tar.zst
gsoc2013-empathy-993766233887be988d3864c64be85c83989d42ad.zip
simple toggle button to match the case
Diffstat (limited to 'libempathy-gtk/empathy-search-bar.c')
-rw-r--r--libempathy-gtk/empathy-search-bar.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-search-bar.c b/libempathy-gtk/empathy-search-bar.c
index 2a16fbf1d..1bf3c54e7 100644
--- a/libempathy-gtk/empathy-search-bar.c
+++ b/libempathy-gtk/empathy-search-bar.c
@@ -38,6 +38,8 @@ struct _EmpathySearchBarPriv
GtkWidget *search_entry;
+ GtkWidget *search_match_case;
+
GtkWidget *search_close;
GtkWidget *search_previous;
GtkWidget *search_next;
@@ -155,13 +157,17 @@ empathy_search_bar_search (EmpathySearchBar *self,
{
gchar *search;
gboolean found;
+ gboolean match_case;
EmpathySearchBarPriv *priv;
priv = GET_PRIV (self);
search = gtk_editable_get_chars (GTK_EDITABLE(priv->search_entry), 0, -1);
+ match_case = gtk_toggle_button_get_active (
+ GTK_TOGGLE_BUTTON (priv->search_match_case));
/* highlight & search */
+ // TODO: add case parameter
empathy_chat_view_highlight (priv->chat_view, search);
if (next)
{
@@ -224,6 +230,7 @@ empathy_search_bar_init (EmpathySearchBar * self)
"search_previous", &priv->search_previous,
"search_next", &priv->search_next,
"search_not_found", &priv->search_not_found,
+ "search_match_case", &priv->search_match_case,
NULL);
g_free (filename);