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 639572 - doesn't emit property change notifications over dbus
doesn't emit property change notifications over dbus
Status: RESOLVED OBSOLETE
Product: gnome-power-manager
Classification: Deprecated
Component: gnome-power-manager
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks: 639284
 
 
Reported: 2011-01-14 23:26 UTC by William Jon McCann
Modified: 2020-11-06 20:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2011-01-14 23:26:30 UTC
org.gnome.PowerManager has two properties Icon and Tooltip.  It would be good if these emitted change notifications so that the client side proxy can cache them.

Seems like something similar to the following is needed:
  GVariantBuilder *builder;
  GError *error;

  error = NULL;
  builder = g_variant_builder_new (G_VARIANT_TYPE_ARRAY);
  g_variant_builder_add (builder,
                         "{sv}",
                         "Icon",
                         g_variant_new_string (icon_string));
  g_dbus_connection_emit_signal (connection,
                                 NULL,
                                 object_path,
                                 "org.freedesktop.DBus.Properties",
                                 "PropertiesChanged",
                                 g_variant_new ("(sa{sv}as)",
                                                interface_name,
                                                builder,
                                                NULL),
                                 &error);
Comment 1 André Klapper 2020-11-06 20:13:39 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years.

If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-power-manager/-/issues/

Thank you for reporting this issue and we are sorry it could not be fixed.