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 620402 - Show addin version and categories tree in addin preferences tab
Show addin version and categories tree in addin preferences tab
Status: RESOLVED FIXED
Product: gnote
Classification: Applications
Component: main
git master
Other Linux
: Normal normal
: ---
Assigned To: Aurimas Černius
gnote-maint
Depends on:
Blocks:
 
 
Reported: 2010-06-02 20:26 UTC by Aurimas Černius
Modified: 2010-12-30 20:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Feature implementation. (2.36 KB, patch)
2010-06-02 20:26 UTC, Aurimas Černius
none Details | Review
Feature implementation. (4.55 KB, patch)
2010-07-29 14:56 UTC, Aurimas Černius
rejected Details | Review
Version using addin categories constants and supporting categories localization. (5.21 KB, patch)
2010-09-30 18:50 UTC, Aurimas Černius
none Details | Review
Version using addin categories constants and supporting categories localization. (5.25 KB, patch)
2010-10-18 20:22 UTC, Aurimas Černius
needs-work Details | Review
Version using addin categories constants and supporting categories localization. (6.32 KB, patch)
2010-10-21 19:53 UTC, Aurimas Černius
accepted-commit_now Details | Review

Description Aurimas Černius 2010-06-02 20:26:04 UTC
Created attachment 162570 [details] [review]
Feature implementation.

Implementation of addin preferences tab, more similar to Tomboy one:
 * Addins are shown in tree of categories.
 * Show addin version, instead of description.
Comment 1 Aurimas Černius 2010-07-29 14:56:20 UTC
Created attachment 166773 [details] [review]
Feature implementation.

Improved patch to show package icon and grey name for disabled addins.
Comment 2 Aurimas Černius 2010-09-30 18:50:14 UTC
Created attachment 171450 [details] [review]
Version using addin categories constants and supporting categories localization.

Updated version of patch, requires patch with turning addin categories into constant identifiers in Bug 621827 to be committed.
Comment 3 Aurimas Černius 2010-10-18 19:35:24 UTC
Review of attachment 166773 [details] [review]:

The other solution is chosen.
Comment 4 Aurimas Černius 2010-10-18 20:22:54 UTC
Created attachment 172644 [details] [review]
Version using addin categories constants and supporting categories localization.

Updated patch, to use the right constants.
Comment 5 Hubert Figuiere (:hub) 2010-10-19 06:30:02 UTC
Comment on attachment 172644 [details] [review]
Version using addin categories constants and supporting categories localization.

AddinsTreeModel::get_addin_category_name() should be a static method.

Also I don't think I agree on changing the value of its parameter and using "Tools" as a default category.
Comment 6 Aurimas Černius 2010-10-19 07:00:27 UTC
(In reply to comment #5)
> (From update of attachment 172644 [details] [review])
> AddinsTreeModel::get_addin_category_name() should be a static method.

Good point. I will fix that.


> Also I don't think I agree on changing the value of its parameter and using
> "Tools" as a default category.

This was done for the case, when addin returns unknown category. Maybe we should create a separate category "Other" or "Unknown" for them? It's not nice, if they all fall into separate categories without names. Changing parameter was done, because I use the integer value to identify the tree item, to which the addin should be placed, so it seemed to me like the most straight way do it.
Comment 7 Aurimas Černius 2010-10-21 19:53:40 UTC
Created attachment 172955 [details] [review]
Version using addin categories constants and supporting categories localization.

Added new addin category `unknown', which is used as default fallback.
get_addin_category_name changed to be public static method.
Added public static method ensure_valid_addin_category, to make sure the addin category is one of our constants.
The rest is updated to use the above.
Comment 8 Hubert Figuiere (:hub) 2010-12-28 15:45:48 UTC
Review of attachment 172955 [details] [review]:

Beside the "curly braces are mandatory" and "nothing allowed on the same line after an else but another if()" rules, the patch looks fine to me.
Comment 9 Aurimas Černius 2010-12-30 20:46:09 UTC
I've fixed the noted issues and pused this patch.