After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 674182 - Use TpDebugClient
Use TpDebugClient
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
2.33.x
Other Linux
: Normal enhancement
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks: 673843
 
 
Reported: 2012-04-16 07:37 UTC by Guillaume Desmottes
Modified: 2012-05-10 07:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debug_window_dispose: use g_clear_object() (1.68 KB, patch)
2012-04-18 07:29 UTC, Guillaume Desmottes
committed Details | Review
empathy-debugger: use self->priv pattern (55.53 KB, patch)
2012-04-18 07:29 UTC, Guillaume Desmottes
committed Details | Review
debug-window: use TpDebugClient (11.14 KB, patch)
2012-04-18 07:29 UTC, Guillaume Desmottes
committed Details | Review
merge store_filter_foreach () and copy_model_foreach () (4.17 KB, patch)
2012-04-18 07:29 UTC, Guillaume Desmottes
committed Details | Review
Store the TpDebugMessage in the model (13.13 KB, patch)
2012-04-18 07:29 UTC, Guillaume Desmottes
committed Details | Review
Stop generating Debug API (7.56 KB, patch)
2012-04-18 07:29 UTC, Guillaume Desmottes
committed Details | Review

Description Guillaume Desmottes 2012-04-16 07:37:04 UTC
Once https://bugs.freedesktop.org/show_bug.cgi?id=23344 has been fixed Empathy should use it.
Comment 1 Guillaume Desmottes 2012-04-18 07:29:04 UTC
The tp-glib branch has been merged. We still have to wait for a release and bump the dep but it can already be reviewed.

http://cgit.collabora.com/git/user/cassidy/empathy/log/?h=debug-674182
Comment 2 Guillaume Desmottes 2012-04-18 07:29:36 UTC
Created attachment 212258 [details] [review]
debug_window_dispose: use g_clear_object()
Comment 3 Guillaume Desmottes 2012-04-18 07:29:38 UTC
Created attachment 212259 [details] [review]
empathy-debugger: use self->priv pattern
Comment 4 Guillaume Desmottes 2012-04-18 07:29:41 UTC
Created attachment 212260 [details] [review]
debug-window: use TpDebugClient
Comment 5 Guillaume Desmottes 2012-04-18 07:29:44 UTC
Created attachment 212261 [details] [review]
merge store_filter_foreach () and copy_model_foreach ()

They were basically the same function. The only difference was that one was
assuming to receive an empty string during the first iteration while the other
was coping with it being NULL.
Comment 6 Guillaume Desmottes 2012-04-18 07:29:47 UTC
Created attachment 212262 [details] [review]
Store the TpDebugMessage in the model

Makes things easier and saves us from dupping the info.
Comment 7 Guillaume Desmottes 2012-04-18 07:29:49 UTC
Created attachment 212263 [details] [review]
Stop generating Debug API
Comment 8 Xavier Claessens 2012-04-25 11:54:32 UTC
Review of attachment 212260 [details] [review]:

::: src/empathy-debug-window.c
@@ +245,3 @@
+
+  t = tp_debug_message_get_time (msg);
+  /* FIME: we loose the microseconds */

FIXME

@@ +246,3 @@
+  t = tp_debug_message_get_time (msg);
+  /* FIME: we loose the microseconds */
+  timestamp = (gdouble) g_date_time_to_unix (t);

why gdouble any not gint64 ?
Comment 9 Xavier Claessens 2012-04-25 12:01:00 UTC
Bah actually comment #8 is fixed by the commit just after... so +1 for all :)
Comment 10 Guillaume Desmottes 2012-05-10 07:50:02 UTC
Attachment 212258 [details] pushed as 77e0eed - debug_window_dispose: use g_clear_object()
Attachment 212259 [details] pushed as cad7698 - empathy-debugger: use self->priv pattern
Attachment 212260 [details] pushed as bb58c64 - debug-window: use TpDebugClient
Attachment 212261 [details] pushed as 60e7f9f - merge store_filter_foreach () and copy_model_foreach ()
Attachment 212262 [details] pushed as 08ab2c8 - Store the TpDebugMessage in the model
Attachment 212263 [details] pushed as a9e5357 - Stop generating Debug API