Commit e134742e authored by Antenore Gatta's avatar Antenore Gatta

GTK3 migration - gtk_image_new_from_stock deprecated, mgrated to gtk_image_new_from_icon_name

parent 6a08ecd5
......@@ -154,7 +154,7 @@ GtkWidget* remmina_applet_menu_item_new(RemminaAppletMenuItemType item_type, ...
}
else
{
widget = gtk_image_new_from_stock(GTK_STOCK_JUMP_TO, GTK_ICON_SIZE_MENU);
widget = gtk_image_new_from_icon_name(GTK_STOCK_JUMP_TO, GTK_ICON_SIZE_MENU);
}
gtk_widget_show(widget);
......
......@@ -230,7 +230,7 @@ remmina_chat_window_new(GtkWindow* parent, const gchar* chat_with)
g_signal_connect(G_OBJECT(widget), "clicked", G_CALLBACK(remmina_chat_window_send), window);
/* Clear button */
image = gtk_image_new_from_stock(GTK_STOCK_CLEAR, GTK_ICON_SIZE_BUTTON);
image = gtk_image_new_from_icon_name(GTK_STOCK_CLEAR, GTK_ICON_SIZE_BUTTON);
gtk_widget_show(image);
widget = gtk_button_new_with_mnemonic(_("_Clear"));
......
......@@ -1938,7 +1938,7 @@ static GtkWidget* remmina_connection_object_create_tab(RemminaConnectionObject*
gtk_widget_set_name(button, "remmina-small-button");
gtk_widget_show(button);
widget = gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
widget = gtk_image_new_from_icon_name(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
gtk_widget_show(widget);
gtk_container_add(GTK_CONTAINER(button), widget);
......
......@@ -220,7 +220,7 @@ static GtkWidget* remmina_file_editor_create_notebook_tab(RemminaFileEditor* gfe
#endif
gtk_widget_show(tablabel);
widget = gtk_image_new_from_stock(stock_id, GTK_ICON_SIZE_MENU);
widget = gtk_image_new_from_icon_name(stock_id, GTK_ICON_SIZE_MENU);
gtk_box_pack_start(GTK_BOX(tablabel), widget, FALSE, FALSE, 0);
gtk_widget_show(widget);
......@@ -1237,7 +1237,7 @@ static void remmina_file_editor_init(RemminaFileEditor* gfe)
/* The Set As Default button */
widget = gtk_button_new_with_label(_("Default"));
gtk_widget_show(widget);
gtk_button_set_image(GTK_BUTTON(widget), gtk_image_new_from_stock(GTK_STOCK_PREFERENCES, GTK_ICON_SIZE_BUTTON));
gtk_button_set_image(GTK_BUTTON(widget), gtk_image_new_from_icon_name(GTK_STOCK_PREFERENCES, GTK_ICON_SIZE_BUTTON));
gtk_box_pack_start(GTK_BOX(gtk_dialog_get_action_area(GTK_DIALOG(gfe))), widget, FALSE, TRUE, 0);
gtk_button_box_set_child_secondary(GTK_BUTTON_BOX(gtk_dialog_get_action_area(GTK_DIALOG(gfe))), widget, TRUE);
......
......@@ -98,7 +98,7 @@ static void remmina_init_dialog_init(RemminaInitDialog *dialog)
gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), hbox, TRUE, TRUE, 0);
/* Icon */
widget = gtk_image_new_from_stock(GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_DIALOG);
widget = gtk_image_new_from_icon_name(GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_DIALOG);
gtk_widget_show(widget);
gtk_box_pack_start(GTK_BOX(hbox), widget, TRUE, TRUE, 4);
dialog->image = widget;
......
......@@ -978,7 +978,7 @@ remmina_sftp_client_confirm_resume (RemminaSFTPClient *client, const gchar *path
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG(dialog))),
hbox, TRUE, TRUE, 4);
widget = gtk_image_new_from_stock (GTK_STOCK_DIALOG_QUESTION, GTK_ICON_SIZE_DIALOG);
widget = gtk_image_new_from_icon_name (GTK_STOCK_DIALOG_QUESTION, GTK_ICON_SIZE_DIALOG);
gtk_widget_show(widget);
gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE, 4);
......
......@@ -229,7 +229,7 @@ static void remmina_string_list_init(RemminaStringList *gsl)
gtk_widget_show(vbox);
gtk_table_attach(GTK_TABLE(gsl), vbox, 1, 2, 0, 3, 0, GTK_EXPAND | GTK_FILL, 0, 0);
image = gtk_image_new_from_stock(GTK_STOCK_ADD, GTK_ICON_SIZE_MENU);
image = gtk_image_new_from_icon_name(GTK_STOCK_ADD, GTK_ICON_SIZE_MENU);
gtk_widget_show(image);
widget = gtk_button_new();
gtk_widget_show(widget);
......@@ -237,7 +237,7 @@ static void remmina_string_list_init(RemminaStringList *gsl)
gtk_box_pack_start(GTK_BOX(vbox), widget, FALSE, FALSE, 0);
g_signal_connect(G_OBJECT(widget), "clicked", G_CALLBACK(remmina_string_list_add), gsl);
image = gtk_image_new_from_stock(GTK_STOCK_REMOVE, GTK_ICON_SIZE_MENU);
image = gtk_image_new_from_icon_name(GTK_STOCK_REMOVE, GTK_ICON_SIZE_MENU);
gtk_widget_show(image);
widget = gtk_button_new();
gtk_widget_show(widget);
......@@ -245,7 +245,7 @@ static void remmina_string_list_init(RemminaStringList *gsl)
gtk_box_pack_start(GTK_BOX(vbox), widget, FALSE, FALSE, 0);
g_signal_connect(G_OBJECT(widget), "clicked", G_CALLBACK(remmina_string_list_remove), gsl);
image = gtk_image_new_from_stock(GTK_STOCK_GO_UP, GTK_ICON_SIZE_MENU);
image = gtk_image_new_from_icon_name(GTK_STOCK_GO_UP, GTK_ICON_SIZE_MENU);
gtk_widget_show(image);
widget = gtk_button_new();
gtk_widget_show(widget);
......@@ -254,7 +254,7 @@ static void remmina_string_list_init(RemminaStringList *gsl)
g_signal_connect(G_OBJECT(widget), "clicked", G_CALLBACK(remmina_string_list_up), gsl);
gsl->up_button = widget;
image = gtk_image_new_from_stock(GTK_STOCK_GO_DOWN, GTK_ICON_SIZE_MENU);
image = gtk_image_new_from_icon_name(GTK_STOCK_GO_DOWN, GTK_ICON_SIZE_MENU);
gtk_widget_show(image);
widget = gtk_button_new();
gtk_widget_show(widget);
......
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