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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
bbb3ee4a
Commit
bbb3ee4a
authored
17 years ago
by
Pierre-Luc Beaudoin
Browse files
Options
Downloads
Patches
Plain Diff
Actions on double clicking on a call
parent
1ec76808
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sflphone-gtk/src/calltree.c
+35
-1
35 additions, 1 deletion
sflphone-gtk/src/calltree.c
with
35 additions
and
1 deletion
sflphone-gtk/src/calltree.c
+
35
−
1
View file @
bbb3ee4a
...
...
@@ -149,7 +149,7 @@ update_buttons ()
call_t
*
selectedCall
=
call_get_selected
();
if
(
selectedCall
)
{
switch
(
selectedCall
->
state
)
// TODO Make this a switch
switch
(
selectedCall
->
state
)
{
case
CALL_STATE_INCOMING
:
gtk_widget_set_sensitive
(
GTK_WIDGET
(
callButton
),
TRUE
);
...
...
@@ -201,6 +201,37 @@ selected(GtkTreeSelection *sel, GtkTreeModel *model)
update_buttons
();
}
/* A row is activated when it is double clicked */
void
row_activated
(
GtkTreeView
*
tree_view
,
GtkTreePath
*
path
,
GtkTreeViewColumn
*
column
,
void
*
foo
)
{
call_t
*
selectedCall
=
call_get_selected
();
if
(
selectedCall
)
{
switch
(
selectedCall
->
state
)
{
case
CALL_STATE_INCOMING
:
dbus_accept
(
selectedCall
);
break
;
case
CALL_STATE_HOLD
:
dbus_unhold
(
selectedCall
);
break
;
case
CALL_STATE_RINGING
:
case
CALL_STATE_CURRENT
:
case
CALL_STATE_BUSY
:
case
CALL_STATE_FAILURE
:
break
;
case
CALL_STATE_DIALING
:
sflphone_place_call
(
selectedCall
);
break
;
default:
g_error
(
"Should not happen!"
);
break
;
}
}
}
GtkWidget
*
create_call_tree
(){
...
...
@@ -228,6 +259,9 @@ create_call_tree (){
view
=
gtk_tree_view_new_with_model
(
GTK_TREE_MODEL
(
store
));
gtk_tree_view_set_headers_visible
(
GTK_TREE_VIEW
(
view
),
FALSE
);
g_signal_connect
(
G_OBJECT
(
view
),
"row-activated"
,
G_CALLBACK
(
row_activated
),
NULL
);
rend
=
gtk_cell_renderer_pixbuf_new
();
col
=
gtk_tree_view_column_new_with_attributes
(
"Icon"
,
...
...
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