Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
calls
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mohammed Sadiq
calls
Commits
1209d737
Commit
1209d737
authored
Mar 12, 2020
by
Mohammed Sadiq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
window: Use g_clear_handle_id to remove source
parent
a91da3f8
Pipeline
#53668
passed with stages
in 10 minutes and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
26 deletions
+4
-26
src/calls-call-window.c
src/calls-call-window.c
+2
-13
src/calls-main-window.c
src/calls-main-window.c
+2
-13
No files found.
src/calls-call-window.c
View file @
1209d737
...
...
@@ -226,23 +226,12 @@ show_message (CallsCallWindow *self,
}
static
inline
void
stop_info_timeout
(
CallsCallWindow
*
self
)
{
if
(
self
->
info_timeout
)
{
g_source_remove
(
self
->
info_timeout
);
self
->
info_timeout
=
0
;
}
}
static
void
info_response_cb
(
GtkInfoBar
*
infobar
,
gint
response_id
,
CallsCallWindow
*
self
)
{
stop_info_timeout
(
self
);
g_clear_handle_id
(
&
self
->
info_timeout
,
g_source_remove
);
gtk_revealer_set_reveal_child
(
self
->
info_revealer
,
FALSE
);
}
...
...
@@ -672,7 +661,7 @@ dispose (GObject *object)
}
g_clear_object
(
&
self
->
call_holders
);
stop_info_timeout
(
self
);
g_clear_handle_id
(
&
self
->
info_timeout
,
g_source_remove
);
G_OBJECT_CLASS
(
calls_call_window_parent_class
)
->
dispose
(
object
);
}
...
...
src/calls-main-window.c
View file @
1209d737
...
...
@@ -151,23 +151,12 @@ show_message (CallsMainWindow *self, const gchar *text, GtkMessageType type)
}
static
inline
void
stop_info_timeout
(
CallsMainWindow
*
self
)
{
if
(
self
->
info_timeout
)
{
g_source_remove
(
self
->
info_timeout
);
self
->
info_timeout
=
0
;
}
}
static
void
info_response_cb
(
GtkInfoBar
*
infobar
,
gint
response_id
,
CallsMainWindow
*
self
)
{
stop_info_timeout
(
self
);
g_clear_handle_id
(
&
self
->
info_timeout
,
g_source_remove
);
gtk_revealer_set_reveal_child
(
self
->
info_revealer
,
FALSE
);
}
...
...
@@ -318,7 +307,7 @@ dispose (GObject *object)
{
CallsMainWindow
*
self
=
CALLS_MAIN_WINDOW
(
object
);
stop_info_timeout
(
self
);
g_clear_handle_id
(
&
self
->
info_timeout
,
g_source_remove
);
g_clear_object
(
&
self
->
contacts
);
g_clear_object
(
&
self
->
record_store
);
g_clear_object
(
&
self
->
provider
);
...
...
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