mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Replace deprecated gtk_image_new_from_stock
This commit is contained in:
parent
83568617ac
commit
38dab47117
1 changed files with 5 additions and 5 deletions
|
@ -888,25 +888,25 @@ int WINAPI gtk_MessageBoxNew( void *parent, const char *message,
|
|||
//! @note kaz 05/09/2012 only support commonly used icons, fill out others as needed
|
||||
switch( flags & MB_ICONMASK ) {
|
||||
case MB_ICONHAND: {
|
||||
dlg_icon = gtk_image_new_from_stock( GTK_STOCK_DIALOG_ERROR, GTK_ICON_SIZE_DIALOG );
|
||||
dlg_icon = gtk_image_new_from_icon_name( "dialog-error", GTK_ICON_SIZE_DIALOG );
|
||||
break;
|
||||
}
|
||||
case MB_ICONQUESTION: {
|
||||
dlg_icon = gtk_image_new_from_stock( GTK_STOCK_DIALOG_QUESTION, GTK_ICON_SIZE_DIALOG );
|
||||
dlg_icon = gtk_image_new_from_icon_name( "dialog-question", GTK_ICON_SIZE_DIALOG );
|
||||
break;
|
||||
}
|
||||
case MB_ICONEXCLAMATION: {
|
||||
dlg_icon = gtk_image_new_from_stock( GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG );
|
||||
dlg_icon = gtk_image_new_from_icon_name( "dialog-warning", GTK_ICON_SIZE_DIALOG );
|
||||
break;
|
||||
}
|
||||
case MB_ICONINFORMATION:
|
||||
default: {
|
||||
dlg_icon = gtk_image_new_from_stock( GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_DIALOG );
|
||||
dlg_icon = gtk_image_new_from_icon_name( "dialog-information", GTK_ICON_SIZE_DIALOG );
|
||||
break;
|
||||
}
|
||||
#if(WINVER >= 0x0400)
|
||||
case MB_USERICON: {
|
||||
//dlg_icon = gtk_image_new_from_stock( ?????, GTK_ICON_SIZE_DIALOG );
|
||||
//dlg_icon = gtk_image_new_from_icon_name( ?????, GTK_ICON_SIZE_DIALOG );
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue