mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-24 02:11:20 +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
|
//! @note kaz 05/09/2012 only support commonly used icons, fill out others as needed
|
||||||
switch( flags & MB_ICONMASK ) {
|
switch( flags & MB_ICONMASK ) {
|
||||||
case MB_ICONHAND: {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case MB_ICONQUESTION: {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case MB_ICONEXCLAMATION: {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case MB_ICONINFORMATION:
|
case MB_ICONINFORMATION:
|
||||||
default: {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
#if(WINVER >= 0x0400)
|
#if(WINVER >= 0x0400)
|
||||||
case MB_USERICON: {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue