mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Replace deprecated gtk_menu_append
This commit is contained in:
parent
ef888dede5
commit
1f40723a78
1 changed files with 4 additions and 4 deletions
|
@ -119,22 +119,22 @@ bool C2DView::OnRButtonUp( int x, int y ){
|
|||
item = gtk_menu_item_new_with_label( _( "Validate (RETURN)" ) );
|
||||
g_signal_connect( G_OBJECT( item ), "activate", G_CALLBACK( Textool_Validate ), NULL );
|
||||
gtk_widget_show( item );
|
||||
gtk_menu_append( GTK_MENU( menu ), item );
|
||||
gtk_menu_shell_append( GTK_MENU_SHELL( menu ), item );
|
||||
|
||||
item = gtk_menu_item_new_with_label( _( "Zoom in (INSERT)" ) );
|
||||
g_signal_connect( G_OBJECT( item ), "activate", G_CALLBACK( view_ZoomIn ), this );
|
||||
gtk_widget_show( item );
|
||||
gtk_menu_append( GTK_MENU( menu ), item );
|
||||
gtk_menu_shell_append( GTK_MENU_SHELL( menu ), item );
|
||||
|
||||
item = gtk_menu_item_new_with_label( _( "Zoom out (DELETE)" ) );
|
||||
g_signal_connect( G_OBJECT( item ), "activate", G_CALLBACK( view_ZoomOut ), this );
|
||||
gtk_widget_show( item );
|
||||
gtk_menu_append( GTK_MENU( menu ), item );
|
||||
gtk_menu_shell_append( GTK_MENU_SHELL( menu ), item );
|
||||
|
||||
item = gtk_menu_item_new_with_label( _( "Cancel (ESC)" ) );
|
||||
g_signal_connect( G_OBJECT( item ), "activate", G_CALLBACK( Textool_Cancel ), NULL );
|
||||
gtk_widget_show( item );
|
||||
gtk_menu_append( GTK_MENU( menu ), item );
|
||||
gtk_menu_shell_append( GTK_MENU_SHELL( menu ), item );
|
||||
|
||||
gtk_menu_popup( GTK_MENU( menu ), NULL, NULL, NULL, NULL, 1, GDK_CURRENT_TIME );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue