unity-dev team mailing list archive
-
unity-dev team
-
Mailing list archive
-
Message #00052
[Ayatana-dev] Slight issue with menu recreation and menu formatting
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hello everyone,
I am working on a clipboard manager for GTK written in C and I am having
a couple of problems with the migration to the AppIndicator.
Firstly, I need to recreate the menu periodically, so that it reflects
the current history items. I have a function that executes every
half-second and I could insert the function for the menu recreation
there, but if I recreate the menu while the menu is visible, it will
refresh and that looks ugly. I searched the AppIndicator C API for a
function on how to see if the menu is active/visible, but couldn't find
anything and the function I normally use (gtk_widget_get_visible)
doesn't work. I would propose to either implement a function to see the
active status of the menu, or change the "visible" property of the menu,
so one could get the active status using gtk_widget_get_visible.
The second problem I am having is that the current menu of the indicator
doesn't support any formatting. I used code like:
gchar* bold_text = g_markup_printf_escaped("<b>%s</b>", list_item);
gtk_label_set_markup((GtkLabel*)item_label, bold_text);
to make the text bold on a menu item, but this doesn't seem to work with
the appindicator menu. Is this intended, is it a bug, or is it just a
feature that wasn't implemented yet?
Thank you very much for taking the time to read my e-mail and respond.
- --
Best regards,
Mit freundlichen Grüßen,
Cristian Henzel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iF4EAREIAAYFAk0PhjEACgkQHujClFIXZ/HO0wD8DsfNqZO+bKyArA2JIjX5RDad
Fp+Ed4YG9pnh9PQ4BB0A/0E+vv3+OuxrA5PyiQ/oTTQ0ROtEL35SYyEPoeueryia
=o2/9
-----END PGP SIGNATURE-----