Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 08 Feb 2020 19:32:06 UTC Commit: 38a138f8c0df31787a3f579c5a606c6a71bb1fd9 https://github.com/geany/geany-plugins/commit/38a138f8c0df31787a3f579c5a606c...
Log Message: ----------- commander: Silence expected deprecation warnings
We have to use the deprecated API because it is the only way to fetch the correct information from menus that were themselves created with that deprecated API, so we don't care about deprecation here.
Closes #865
Modified Paths: -------------- commander/src/commander-plugin.c
Modified: commander/src/commander-plugin.c 4 lines changed, 4 insertions(+), 0 deletions(-) =================================================================== @@ -306,6 +306,9 @@ store_populate_menu_items (GtkListStore *store, gboolean use_underline; GtkStockItem item;
+ /* GtkStock is deprectaed since GTK 3.10, but we have to use it in order + * to get the actual label of the menu item */ + G_GNUC_BEGIN_IGNORE_DEPRECATIONS if (GTK_IS_IMAGE_MENU_ITEM (node->data) && gtk_image_menu_item_get_use_stock (node->data) && gtk_stock_lookup (gtk_menu_item_get_label (node->data), &item)) { @@ -315,6 +318,7 @@ store_populate_menu_items (GtkListStore *store, item_label = g_strdup (gtk_menu_item_get_label (node->data)); use_underline = gtk_menu_item_get_use_underline (node->data); } + G_GNUC_END_IGNORE_DEPRECATIONS
/* remove underlines */ if (use_underline) {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).