Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
J
jami-daemon
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
124
Issues
124
List
Boards
Labels
Milestones
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
savoirfairelinux
jami-daemon
Commits
26db78d8
Commit
26db78d8
authored
Sep 08, 2011
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* #6894: fix leaks, cleanup in sflnotify
parent
34a0d59b
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
84 additions
and
178 deletions
+84
-178
gnome/src/actions.c
gnome/src/actions.c
+4
-9
gnome/src/contacts/calltree.c
gnome/src/contacts/calltree.c
+0
-1
gnome/src/dbus/dbus.c
gnome/src/dbus/dbus.c
+0
-2
gnome/src/sflnotify.c
gnome/src/sflnotify.c
+80
-150
gnome/src/sflnotify.h
gnome/src/sflnotify.h
+0
-16
No files found.
gnome/src/actions.c
View file @
26db78d8
...
...
@@ -414,7 +414,6 @@ sflphone_hang_up()
call_remove_all_errors
(
selectedCall
);
selectedCall
->
_state
=
CALL_STATE_DIALING
;
DEBUG
(
"from sflphone_hang_up : "
);
stop_notification
();
break
;
case
CALL_STATE_TRANSFER
:
dbus_hang_up
(
selectedCall
);
...
...
@@ -465,7 +464,6 @@ sflphone_pick_up()
}
dbus_accept
(
selectedCall
);
stop_notification
();
break
;
case
CALL_STATE_TRANSFER
:
dbus_transfer
(
selectedCall
);
...
...
@@ -766,11 +764,9 @@ sflphone_keypad (guint keyval, gchar * key)
c
->
_history_state
=
INCOMING
;
calltree_update_call
(
history
,
c
,
NULL
);
dbus_accept
(
c
);
stop_notification
();
break
;
case
GDK_Escape
:
dbus_refuse
(
c
);
stop_notification
();
break
;
}
...
...
@@ -825,15 +821,14 @@ sflphone_keypad (guint keyval, gchar * key)
break
;
}
}
else
{
}
else
sflphone_new_call
();
}
}
static
void
place_direct_call
(
const
callable_obj_t
*
c
)
{
assert
(
c
->
_state
==
CALL_STATE_DIALING
);
dbus_place_call
(
c
);
g_
assert
(
c
->
_state
==
CALL_STATE_DIALING
);
dbus_place_call
(
c
);
}
static
int
place_registered_call
(
callable_obj_t
*
c
)
...
...
@@ -861,7 +856,7 @@ static int place_registered_call (callable_obj_t * c)
DEBUG
(
"Actions: Get account for this call"
);
if
(
g_strcasecmp
(
c
->
_accountID
,
""
)
!=
0
)
{
if
(
strlen
(
c
->
_accountID
)
!=
0
)
{
DEBUG
(
"Actions: Account %s already set for this call"
,
c
->
_accountID
);
current
=
account_list_get_by_id
(
c
->
_accountID
);
}
else
{
...
...
gnome/src/contacts/calltree.c
View file @
26db78d8
...
...
@@ -202,7 +202,6 @@ row_activated (GtkTreeView *tree_view UNUSED,
switch
(
selectedCall
->
_state
)
{
case
CALL_STATE_INCOMING
:
dbus_accept
(
selectedCall
);
stop_notification
();
break
;
case
CALL_STATE_HOLD
:
dbus_unhold
(
selectedCall
);
...
...
gnome/src/dbus/dbus.c
View file @
26db78d8
...
...
@@ -160,8 +160,6 @@ call_state_cb (DBusGProxy *proxy UNUSED, const gchar* callID, const gchar* state
time
(
&
c
->
_time_stop
);
calltree_update_call
(
history
,
c
,
NULL
);
}
stop_notification
();
calltree_update_call
(
history
,
c
,
NULL
);
status_bar_display_account
();
sflphone_hung_up
(
c
);
...
...
gnome/src/sflnotify.c
View file @
26db78d8
This diff is collapsed.
Click to expand it.
gnome/src/sflnotify.h
View file @
26db78d8
...
...
@@ -44,17 +44,6 @@
G_BEGIN_DECLS
typedef
struct
{
NotifyNotification
*
notification
;
gchar
*
title
;
gchar
*
body
;
GdkPixbuf
*
icon
;
}
GnomeNotification
;
void
create_new_gnome_notification
(
gchar
*
title
,
gchar
*
body
,
NotifyUrgency
urgency
,
gint
timeout
,
GnomeNotification
**
notif
);
void
free_notification
(
GnomeNotification
*
g
);
/**
* Notify an incoming call
* A dialog box is attached to the status icon
...
...
@@ -93,11 +82,6 @@ void notify_no_accounts();
*/
void
notify_no_registered_accounts
();
/**
* Stop and close the current notification if an action occured before the timeout
*/
void
stop_notification
(
void
);
/**
* Notify that the RTP session is secured
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment