[Xfce4-commits] [panel-plugins/xfce4-clipman-plugin] 07/37: Drop unused QRcode code
noreply at xfce.org
noreply at xfce.org
Mon Mar 23 23:30:02 CET 2020
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-clipman-plugin.
commit 9f6a24fe48f239ab221ffcb0a674a3e4fe2cf896
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Mon Mar 16 01:46:55 2020 +0100
Drop unused QRcode code
---
panel-plugin/xfce4-clipman-history.c | 44 ------------------------------------
1 file changed, 44 deletions(-)
diff --git a/panel-plugin/xfce4-clipman-history.c b/panel-plugin/xfce4-clipman-history.c
index d582637..ff08919 100644
--- a/panel-plugin/xfce4-clipman-history.c
+++ b/panel-plugin/xfce4-clipman-history.c
@@ -226,52 +226,8 @@ G_GNUC_END_IGNORE_DEPRECATIONS
// g_signal_connect (mi, "activate", G_CALLBACK (cb_set_clipboard), item);
// g_object_set_data (G_OBJECT (mi), "paste-on-activate", GUINT_TO_POINTER (menu->priv->paste_on_activate));
-//
-// if (item == item_to_restore)
-// {
-// image = gtk_image_new_from_icon_name ("go-next-symbolic", GTK_ICON_SIZE_MENU);
-//G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-// gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi), image);
-//G_GNUC_END_IGNORE_DEPRECATIONS
-// }
-
- //menu->priv->list = g_slist_prepend (menu->priv->list, mi);
-// gtk_menu_shell_insert (GTK_MENU_SHELL (menu), mi, pos++);
-// gtk_widget_show_all (mi);
}
-#ifdef HAVE_QRENCODE
- /* Draw QR Code if clipboard content is text */
-// if (menu->priv->show_qr_code && item_to_restore && item_to_restore->type == CLIPMAN_HISTORY_TYPE_TEXT)
-// {
-// mi = gtk_separator_menu_item_new ();
-// menu->priv->list = g_slist_prepend (menu->priv->list, mi);
-// gtk_menu_shell_insert (GTK_MENU_SHELL (menu), mi, pos++);
-// gtk_widget_show_all (mi);
-//
-// if ((pixbuf = clipman_menu_qrcode (item_to_restore->content.text)) != NULL)
-// {
-//G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-// mi = gtk_image_menu_item_new ();
-//G_GNUC_END_IGNORE_DEPRECATIONS
-// gtk_container_add (GTK_CONTAINER (mi), gtk_image_new_from_pixbuf (pixbuf));
-// g_signal_connect (mi, "activate", G_CALLBACK (cb_set_qrcode), pixbuf);
-// menu->priv->list = g_slist_prepend (menu->priv->list, mi);
-// gtk_menu_shell_insert (GTK_MENU_SHELL (menu), mi, pos++);
-// gtk_widget_show_all (mi);
-// g_object_unref(pixbuf);
-// }
-// else
-// {
-// mi = gtk_menu_item_new_with_label (_("Could not generate QR-Code."));
-// menu->priv->list = g_slist_prepend (menu->priv->list, mi);
-// gtk_menu_shell_insert (GTK_MENU_SHELL (menu), mi, pos++);
-// gtk_widget_set_sensitive (mi, FALSE);
-// gtk_widget_show (mi);
-// }
-// }
-#endif
-
g_slist_free (list);
return box;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list