- Change Summary:
-
rebased
- Commits:
-
Summary ID 760af769598d36c6e7ccf71912ebadd4195943ea a53fa17b83b045978bccf1981060fde542bc806e
Add purple_menu_populate_dynamic_targets to dynamically update GMenu's
Review Request #1356 — Created March 18, 2022 and submitted
This is going to be used in the GMenu's for plugins, protocols, accounts, etc where there are dynamic items and we need to be able to set a target for them dynamically.
Ran the new unit tests.
Summary | ID |
---|---|
3add3ad26aeebf88cd8a62401834285075b4c429 |
Description | From | Last Updated |
---|---|---|
Should be the GIR link syntax. |
QuLogic | |
dynamic-target (or maybe the constant macro can be used?) |
QuLogic | |
Should be [func@Account.get_id] or whatever it is. |
QuLogic | |
recursing |
QuLogic | |
Should use the macro instead of the dynamic-target string? |
QuLogic | |
Not tabs. |
QuLogic | |
This is going to be confusing for func, because it will be receiving a GMenuModel that is not the one … |
QuLogic | |
Possibly should assert that n == n_items and l == NULL at the end. |
QuLogic | |
Maybe rename to expected (in all tests). |
QuLogic | |
So this doesn't work when the account is first enabled because it doesn't have a connection. |
QuLogic | |
Missing period. |
lifesfaded | |
If I've understood the connected signals correctly, this will never be true if you only have one account, since this … |
QuLogic | |
Quote dynamic-target, to match the example below. |
QuLogic | |
Should that not be a g_return_if_fail? |
QuLogic | |
Could be g_free(item)? |
QuLogic | |
Maybe also a test with a dynamic-target, but with a name that's not passed to purple_menu_populate_dynamic_targets? |
QuLogic |
- Change Summary:
-
address issues in the review and add a public walk function that simplifies testing and helps us deal with the nested menu structures.
- Commits:
-
Summary ID a53fa17b83b045978bccf1981060fde542bc806e aaa8cc22122d5de16b51daed6b9007e144826a14
- Commits:
-
Summary ID aaa8cc22122d5de16b51daed6b9007e144826a14 06c6b2e55f6760f4a4e2fd81f63623b7859d684e
- Change Summary:
-
avoid a crash
- Commits:
-
Summary ID 06c6b2e55f6760f4a4e2fd81f63623b7859d684e b048eea7c12f05b8de7f9621c0843d9cd1506b9c
- Change Summary:
-
fix punctuation
- Commits:
-
Summary ID b048eea7c12f05b8de7f9621c0843d9cd1506b9c 7068dd5697cb7c43167f57617098dc9a1e9cebdf
-
-
If I've understood the connected signals correctly, this will never be true if you only have one account, since this is only triggered on account enabled/disabled.
If you have multiple accounts, then this may be true if the second account gets enabled after the first gets a connection, but that depends on some timing.
- Change Summary:
-
refresh the menu when an account is done connecting as well as when it is disconnected.
- Commits:
-
Summary ID 7068dd5697cb7c43167f57617098dc9a1e9cebdf 292bb6da167db3a96994e02a2dbf0c7581132ecf
- Change Summary:
-
rebased
- Commits:
-
Summary ID 292bb6da167db3a96994e02a2dbf0c7581132ecf 2d5f55b9478687cd52565aac54a2220cf2a14dd7