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 677545 - Build with tp-glib GSEAL
Build with tp-glib GSEAL
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
2.33.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2012-06-06 09:44 UTC by Guillaume Desmottes
Modified: 2012-06-07 10:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
protocol-chooser: use TpConnectionManagerProtocol accessors (5.66 KB, patch)
2012-06-06 13:39 UTC, Guillaume Desmottes
committed Details | Review
remove unused proxy hash and equal functions (2.34 KB, patch)
2012-06-06 13:39 UTC, Guillaume Desmottes
committed Details | Review
tp-chat: use TpProxy accessors (1021 bytes, patch)
2012-06-06 13:39 UTC, Guillaume Desmottes
committed Details | Review
connection-managers: use TpConnectionManager accessor (925 bytes, patch)
2012-06-06 13:39 UTC, Guillaume Desmottes
committed Details | Review
account-widget: use TpConnectionManager accessors (4.18 KB, patch)
2012-06-06 13:39 UTC, Guillaume Desmottes
committed Details | Review
import-utils: use TpConnectionManager accessors (1.29 KB, patch)
2012-06-06 13:39 UTC, Guillaume Desmottes
committed Details | Review
account-settings: use TpConnectionManager accessors (1.26 KB, patch)
2012-06-06 13:39 UTC, Guillaume Desmottes
committed Details | Review
make empathy_account_settings_get() static (1.87 KB, patch)
2012-06-06 13:39 UTC, Guillaume Desmottes
committed Details | Review
accounts-settings: store parameters as GVariant (10.26 KB, patch)
2012-06-07 10:04 UTC, Guillaume Desmottes
committed Details | Review
remove empathy_account_settings_set_* functions (16.39 KB, patch)
2012-06-07 10:04 UTC, Guillaume Desmottes
committed Details | Review
account-settings: always use GVariant to store parameters (26.99 KB, patch)
2012-06-07 10:04 UTC, Guillaume Desmottes
committed Details | Review
empathy_account_settings_migrate_password_cb: use the vardict API (1.64 KB, patch)
2012-06-07 10:04 UTC, Guillaume Desmottes
committed Details | Review
Build with TP_SEAL_ENABLE (808 bytes, patch)
2012-06-07 10:04 UTC, Guillaume Desmottes
committed Details | Review

Description Guillaume Desmottes 2012-06-06 09:44:14 UTC
Needed to build with tp-glib master.
Comment 1 Guillaume Desmottes 2012-06-06 13:39:05 UTC
Created attachment 215742 [details] [review]
protocol-chooser: use TpConnectionManagerProtocol accessors
Comment 2 Guillaume Desmottes 2012-06-06 13:39:07 UTC
Created attachment 215743 [details] [review]
remove unused proxy hash and equal functions
Comment 3 Guillaume Desmottes 2012-06-06 13:39:10 UTC
Created attachment 215744 [details] [review]
tp-chat: use TpProxy accessors
Comment 4 Guillaume Desmottes 2012-06-06 13:39:13 UTC
Created attachment 215745 [details] [review]
connection-managers: use TpConnectionManager accessor
Comment 5 Guillaume Desmottes 2012-06-06 13:39:16 UTC
Created attachment 215746 [details] [review]
account-widget: use TpConnectionManager accessors
Comment 6 Guillaume Desmottes 2012-06-06 13:39:18 UTC
Created attachment 215747 [details] [review]
import-utils: use TpConnectionManager accessors
Comment 7 Guillaume Desmottes 2012-06-06 13:39:21 UTC
Created attachment 215748 [details] [review]
account-settings: use TpConnectionManager accessors
Comment 8 Guillaume Desmottes 2012-06-06 13:39:24 UTC
Created attachment 215749 [details] [review]
make empathy_account_settings_get() static
Comment 9 Guillaume Desmottes 2012-06-06 13:40:03 UTC
It doesn't cover everything; I still need to port the defaut value code but I want to have bug #676634 merged first.
Comment 10 Xavier Claessens 2012-06-06 14:33:54 UTC
Review of attachment 215744 [details] [review]:

::: libempathy/empathy-tp-chat.c
@@ +1112,3 @@
        "connection", conn,
+       "dbus-daemon", tp_proxy_get_dbus_daemon (conn_proxy),
+       "bus-name", tp_proxy_get_bus_name (conn_proxy),

you can even remove conn_proxy since tp_proxy_* gets a gpointer in args instead of TpProxy* to avoid casting.
Comment 11 Xavier Claessens 2012-06-06 14:35:57 UTC
+1 for the rest
Comment 12 Guillaume Desmottes 2012-06-07 07:08:22 UTC
(In reply to comment #10)
> Review of attachment 215744 [details] [review]:
> 
> ::: libempathy/empathy-tp-chat.c
> @@ +1112,3 @@
>         "connection", conn,
> +       "dbus-daemon", tp_proxy_get_dbus_daemon (conn_proxy),
> +       "bus-name", tp_proxy_get_bus_name (conn_proxy),
> 
> you can even remove conn_proxy since tp_proxy_* gets a gpointer in args instead
> of TpProxy* to avoid casting.

Fixed, thanks.
Comment 13 Guillaume Desmottes 2012-06-07 07:13:32 UTC
Attachment 215742 [details] pushed as 77ffbf2 - protocol-chooser: use TpConnectionManagerProtocol accessors
Attachment 215743 [details] pushed as c9a2ff7 - remove unused proxy hash and equal functions
Attachment 215744 [details] pushed as 9bccca3 - tp-chat: use TpProxy accessors
Attachment 215745 [details] pushed as eb601e9 - connection-managers: use TpConnectionManager accessor
Attachment 215746 [details] pushed as 56b41e3 - account-widget: use TpConnectionManager accessors
Attachment 215747 [details] pushed as 543b740 - import-utils: use TpConnectionManager accessors
Attachment 215748 [details] pushed as f39236c - account-settings: use TpConnectionManager accessors
Attachment 215749 [details] pushed as 18de9f7 - make empathy_account_settings_get() static
Comment 14 Guillaume Desmottes 2012-06-07 10:04:27 UTC
Created attachment 215830 [details] [review]
accounts-settings: store parameters as GVariant

This patch introduces a GValue leak. I'm going to fix it when switching the
rest of this code to GVariant but I prefer to keep patches smaller.
Comment 15 Guillaume Desmottes 2012-06-07 10:04:31 UTC
Created attachment 215831 [details] [review]
remove empathy_account_settings_set_* functions

They don't buy us much so let's just pass the GVariant directly.

Fix some string leaks in empathy-account-widget-irc.c as well.
Comment 16 Guillaume Desmottes 2012-06-07 10:04:34 UTC
Created attachment 215832 [details] [review]
account-settings: always use GVariant to store parameters
Comment 17 Guillaume Desmottes 2012-06-07 10:04:37 UTC
Created attachment 215833 [details] [review]
empathy_account_settings_migrate_password_cb: use the vardict API
Comment 18 Guillaume Desmottes 2012-06-07 10:04:40 UTC
Created attachment 215834 [details] [review]
Build with TP_SEAL_ENABLE
Comment 19 Xavier Claessens 2012-06-07 10:38:09 UTC
Review of attachment 215832 [details] [review]:

Why do you dup_string()? you can just use g_variant_get_string(), no?
Comment 20 Guillaume Desmottes 2012-06-07 10:51:38 UTC
Attachment 215830 [details] pushed as d51deb6 - accounts-settings: store parameters as GVariant
Attachment 215831 [details] pushed as 9d8d7a2 - remove empathy_account_settings_set_* functions
Attachment 215832 [details] pushed as 4da4893 - account-settings: always use GVariant to store parameters
Attachment 215833 [details] pushed as 9910d4e - empathy_account_settings_migrate_password_cb: use the vardict API
Attachment 215834 [details] pushed as 0c54e7a - Build with TP_SEAL_ENABLE