Commit cd82ccba authored by Giovanni Panozzo's avatar Giovanni Panozzo

Remove unused icons widgets from systray menu

parent c08862df
......@@ -98,18 +98,11 @@ remmina_applet_menu_add_group(GtkWidget *menu, const gchar *group, gint position
{
TRACE_CALL("remmina_applet_menu_add_group");
GtkWidget *widget;
GtkWidget *image;
GtkWidget *submenu;
widget = gtk_menu_item_new_with_label(group);
gtk_widget_show(widget);
image =
gtk_image_new_from_icon_name(
(menuitem->item_type == REMMINA_APPLET_MENU_ITEM_DISCOVERED ?
"folder-remote" : "folder"), GTK_ICON_SIZE_MENU);
gtk_widget_show(image);
g_object_set_data_full(G_OBJECT(widget), "group", g_strdup(group), g_free);
g_object_set_data(G_OBJECT(widget), "count", GINT_TO_POINTER(0));
if (groupmenuitem)
......
......@@ -80,7 +80,6 @@ GtkWidget* remmina_applet_menu_item_new(RemminaAppletMenuItemType item_type, ...
RemminaAppletMenuItem* item;
GKeyFile* gkeyfile;
GtkWidget* widget;
const gchar* iconname;
va_start(ap, item_type);
......@@ -139,47 +138,6 @@ GtkWidget* remmina_applet_menu_item_new(RemminaAppletMenuItemType item_type, ...
gtk_widget_set_halign (widget, GTK_ALIGN_START);
gtk_container_add(GTK_CONTAINER(item), widget);
/* Create the image */
if (item_type == REMMINA_APPLET_MENU_ITEM_FILE || item_type == REMMINA_APPLET_MENU_ITEM_DISCOVERED)
{
if (g_strcmp0(item->protocol, "SFTP") == 0)
{
iconname = "remmina-sftp";
}
else if (g_strcmp0(item->protocol, "SSH") == 0)
{
iconname = "utilities-terminal";
}
else if (g_strcmp0(item->protocol, "RDP") == 0)
{
iconname = (item->ssh_enabled ? "remmina-rdp-ssh" : "remmina-rdp");
}
else if (strncmp (item->protocol, "VNC", 3) == 0)
{
iconname = (item->ssh_enabled ? "remmina-vnc-ssh" : "remmina-vnc");
}
else if (g_strcmp0(item->protocol, "XDMCP") == 0)
{
iconname = (item->ssh_enabled ? "remmina-xdmcp-ssh" : "remmina-xdmcp");
}
else if (g_strcmp0(item->protocol, "NX") == 0)
{
iconname = "remmina-nx";
}
else
{
iconname = "remmina";
}
widget = gtk_image_new_from_icon_name(iconname, GTK_ICON_SIZE_MENU);
}
else
{
widget = gtk_image_new_from_icon_name("go-jump", GTK_ICON_SIZE_MENU);
}
gtk_widget_show(widget);
if (item->server)
{
gtk_widget_set_tooltip_text(GTK_WIDGET(item), item->server);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment