Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Tue, 17 Oct 2023 15:14:33 UTC Commit: 54e93196e2e6105044ed259fff3d1264c2aeb3e3 https://github.com/geany/geany-plugins/commit/54e93196e2e6105044ed259fff3d12...
Log Message: ----------- Merge pull request #952 from b4n/commander
commander: Silence expected deprecation warnings
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).
plugins-commits@lists.geany.org