Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
3933f5a0
Commit
3933f5a0
authored
16 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
[
#961
] Filter on the history type OK
parent
6c74e3f0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone-client-gnome/src/contacts/history.c
+2
-2
2 additions, 2 deletions
sflphone-client-gnome/src/contacts/history.c
sflphone-client-gnome/src/contacts/searchbar.c
+8
-0
8 additions, 0 deletions
sflphone-client-gnome/src/contacts/searchbar.c
with
10 additions
and
2 deletions
sflphone-client-gnome/src/contacts/history.c
+
2
−
2
View file @
3933f5a0
...
@@ -98,8 +98,8 @@ static gboolean history_is_visible (GtkTreeModel* model, GtkTreeIter* iter, gpoi
...
@@ -98,8 +98,8 @@ static gboolean history_is_visible (GtkTreeModel* model, GtkTreeIter* iter, gpoi
else
else
{
{
// We need a match on the history_state_t and the current search type
// We need a match on the history_state_t and the current search type
if
(
(
history_entry
->
_history_state
+
1
)
==
(
int
)
get_current_history_search_type
()
)
return
(
history_entry
->
_history_state
+
1
)
==
(
int
)
get_current_history_search_type
()
&&
return
g_regex_match_simple
(
search
,
text
,
G_REGEX_CASELESS
,
0
);
g_regex_match_simple
(
search
,
text
,
G_REGEX_CASELESS
,
0
);
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
sflphone-client-gnome/src/contacts/searchbar.c
+
8
−
0
View file @
3933f5a0
...
@@ -51,6 +51,8 @@ static void search_all (GtkWidget *item, GtkEntry *entry)
...
@@ -51,6 +51,8 @@ static void search_all (GtkWidget *item, GtkEntry *entry)
gtk_entry_set_icon_tooltip_text
(
entry
,
GTK_ENTRY_ICON_PRIMARY
,
gtk_entry_set_icon_tooltip_text
(
entry
,
GTK_ENTRY_ICON_PRIMARY
,
"Search all
\n
"
"Search all
\n
"
"Click here to change the search type"
);
"Click here to change the search type"
);
history_search
(
HistorySearchType
);
}
}
static
void
search_by_missed
(
GtkWidget
*
item
,
GtkEntry
*
entry
)
static
void
search_by_missed
(
GtkWidget
*
item
,
GtkEntry
*
entry
)
...
@@ -62,6 +64,8 @@ static void search_by_missed (GtkWidget *item, GtkEntry *entry)
...
@@ -62,6 +64,8 @@ static void search_by_missed (GtkWidget *item, GtkEntry *entry)
gtk_entry_set_icon_tooltip_text
(
entry
,
GTK_ENTRY_ICON_PRIMARY
,
gtk_entry_set_icon_tooltip_text
(
entry
,
GTK_ENTRY_ICON_PRIMARY
,
"Search by missed call
\n
"
"Search by missed call
\n
"
"Click here to change the search type"
);
"Click here to change the search type"
);
history_search
(
HistorySearchType
);
}
}
static
void
search_by_incoming
(
GtkWidget
*
item
,
GtkEntry
*
entry
)
static
void
search_by_incoming
(
GtkWidget
*
item
,
GtkEntry
*
entry
)
...
@@ -73,6 +77,8 @@ static void search_by_incoming (GtkWidget *item, GtkEntry *entry)
...
@@ -73,6 +77,8 @@ static void search_by_incoming (GtkWidget *item, GtkEntry *entry)
gtk_entry_set_icon_tooltip_text
(
entry
,
GTK_ENTRY_ICON_PRIMARY
,
gtk_entry_set_icon_tooltip_text
(
entry
,
GTK_ENTRY_ICON_PRIMARY
,
"Search by incoming call
\n
"
"Search by incoming call
\n
"
"Click here to change the search type"
);
"Click here to change the search type"
);
history_search
(
HistorySearchType
);
}
}
static
void
search_by_outgoing
(
GtkWidget
*
item
,
GtkEntry
*
entry
)
static
void
search_by_outgoing
(
GtkWidget
*
item
,
GtkEntry
*
entry
)
...
@@ -84,6 +90,8 @@ static void search_by_outgoing (GtkWidget *item, GtkEntry *entry)
...
@@ -84,6 +90,8 @@ static void search_by_outgoing (GtkWidget *item, GtkEntry *entry)
gtk_entry_set_icon_tooltip_text
(
entry
,
GTK_ENTRY_ICON_PRIMARY
,
gtk_entry_set_icon_tooltip_text
(
entry
,
GTK_ENTRY_ICON_PRIMARY
,
"Search by outgoing call
\n
"
"Search by outgoing call
\n
"
"Click here to change the search type"
);
"Click here to change the search type"
);
history_search
(
HistorySearchType
);
}
}
static
void
icon_press_cb
(
GtkEntry
*
entry
,
gint
position
,
GdkEventButton
*
event
,
gpointer
data
)
static
void
icon_press_cb
(
GtkEntry
*
entry
,
gint
position
,
GdkEventButton
*
event
,
gpointer
data
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment