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 579987 - Remove deprecated GTK+ symbols
Remove deprecated GTK+ symbols
Status: RESOLVED OBSOLETE
Product: policykit-gnome
Classification: Platform
Component: authentication dialog
unspecified
Other Linux
: Normal normal
: ---
Assigned To: policykit-gnome-maint
policykit-gnome-maint
Depends on:
Blocks: 585692
 
 
Reported: 2009-04-23 16:35 UTC by André Klapper
Modified: 2009-06-22 16:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
dismiss the deprecated tooltips usage (4.39 KB, patch)
2009-06-15 15:43 UTC, Bin Li
none Details | Review

Description André Klapper 2009-04-23 16:35:54 UTC
According to http://www.gnome.org/~fpeters/299.html
PolicyKit-gnome (0.9.2) uses deprecated GTK+ symbols:

GtkTooltipsData, gtk_action_block_activate_from, gtk_action_connect_proxy, gtk_action_unblock_activate_from, gtk_tooltips_data_get, gtk_tooltips_new, gtk_tooltips_set_tip


$:andre\> grep -r GtkTooltipsData .
./polkit-gnome/polkit-gnome-toggle-action.c:
        GtkTooltipsData *ttd;
./polkit-gnome/polkit-gnome-action.c:
        GtkTooltipsData *ttd;

$:andre\> grep -r gtk_action_block_activate_from .
./polkit-gnome/polkit-gnome-toggle-action.c:
        gtk_action_block_activate_from (GTK_ACTION (toggle_action), proxy);
./polkit-gnome/polkit-gnome-toggle-action.c:
        gtk_action_block_activate_from (GTK_ACTION (action), proxy);
./polkit-gnome/polkit-gnome-action.c:
        gtk_action_block_activate_from (GTK_ACTION (action), button);

$:andre\> grep -r gtk_action_connect_proxy .
./tools/polkit-gnome-authorization.c:
        gtk_action_connect_proxy (GTK_ACTION (read_action), read_all_auths);
./polkit-gnome/polkit-gnome-toggle-action.c:
        gtk_action_connect_proxy (GTK_ACTION (action), button);
./polkit-gnome/polkit-gnome-action.c:
        gtk_action_connect_proxy (GTK_ACTION (action), button);

$:andre\> grep -r gtk_action_unblock_activate_from .
./polkit-gnome/polkit-gnome-toggle-action.c:
        gtk_action_unblock_activate_from (GTK_ACTION (toggle_action), proxy);
./polkit-gnome/polkit-gnome-toggle-action.c:
        gtk_action_unblock_activate_from (GTK_ACTION (action), proxy);
./polkit-gnome/polkit-gnome-action.c:
        gtk_action_unblock_activate_from (GTK_ACTION (action), button);

$:andre\> grep -r gtk_tooltips_data_get .
./polkit-gnome/polkit-gnome-toggle-action.c:
        ttd = gtk_tooltips_data_get (widget);
./polkit-gnome/polkit-gnome-action.c:
        ttd = gtk_tooltips_data_get (widget);

$:andre\> grep -r gtk_tooltips_new .
./polkit-gnome/polkit-gnome-toggle-action.c:
        tips = gtk_tooltips_new ();
./polkit-gnome/polkit-gnome-action.c:
        tips = gtk_tooltips_new ();

$:andre\> grep -r gtk_tooltips_set_tip .
./polkit-gnome/polkit-gnome-toggle-action.c:
        gtk_tooltips_set_tip (tips, widget, tip_str, tip_str);
./polkit-gnome/polkit-gnome-action.c:
        gtk_tooltips_set_tip (tips, widget, tip_str, tip_str);
Comment 1 Bin Li 2009-04-28 10:12:52 UTC
André,

 I would like to take care of it, could you give some tips?

 I found that "GtkTooltip belongs to the new tooltips API that was introduced in GTK+ 2.12 and which deprecates the old GtkTooltips API".

 But gtk_action_block_activate_from, gtk_action_unblock_activate_from and gtk_action_connect_proxy not prompt deprecated in GTK+ reference.
Comment 3 André Klapper 2009-06-15 08:37:11 UTC
Bin Li, any progress here?
Even if a patch only fixes some of the issues it is very welcome!
Comment 4 Bin Li 2009-06-15 15:43:06 UTC
Created attachment 136641 [details] [review]
dismiss the deprecated tooltips usage

it's based on 0.9.2, don't use the deprecated GtkTooltips, GtkTooltipsData and gtk_tooltips_set_tip(). Use gtk_widget_set_tooltip_text() directly.
Comment 5 Bin Li 2009-06-15 15:56:28 UTC
André,

 I still don't clearly know how to dismiss the gtk-action related function.
 I know about the GtkActivatable is implemented by GtkButton since 2.16, so below change should be do.

 gtk-action-connect-proxy (GTK_ACTION (action), button);
 ---->
 gtk_activatable_set_related_action (button, GTK_ACTION (action));

 And gtk_action_block_activate_from and gtk_action_unblock_activate_from don't need any more.

 But I think maybe need more change that related to gtk_action_get_proxies, this function isn't deprecated. it returns the proxy widgets for an action.
 So could I thought the proxy widgets is GtkActivatable widgets, like GtkButton?
 And any other ideas?

 Thanks!
Comment 6 David Zeuthen (not reading bugmail) 2009-06-22 16:05:13 UTC
The client library is no longer present in the latest version that use polkit 1.0. So closing as OBSOLETE. Thanks for the effort anyway.