mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Merge pull request #494 from Pan7/deprMenuA
Replace deprecated gtk_menu_append
This commit is contained in:
commit
14b200e58b
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)" ) );
|
item = gtk_menu_item_new_with_label( _( "Validate (RETURN)" ) );
|
||||||
g_signal_connect( G_OBJECT( item ), "activate", G_CALLBACK( Textool_Validate ), NULL );
|
g_signal_connect( G_OBJECT( item ), "activate", G_CALLBACK( Textool_Validate ), NULL );
|
||||||
gtk_widget_show( item );
|
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)" ) );
|
item = gtk_menu_item_new_with_label( _( "Zoom in (INSERT)" ) );
|
||||||
g_signal_connect( G_OBJECT( item ), "activate", G_CALLBACK( view_ZoomIn ), this );
|
g_signal_connect( G_OBJECT( item ), "activate", G_CALLBACK( view_ZoomIn ), this );
|
||||||
gtk_widget_show( item );
|
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)" ) );
|
item = gtk_menu_item_new_with_label( _( "Zoom out (DELETE)" ) );
|
||||||
g_signal_connect( G_OBJECT( item ), "activate", G_CALLBACK( view_ZoomOut ), this );
|
g_signal_connect( G_OBJECT( item ), "activate", G_CALLBACK( view_ZoomOut ), this );
|
||||||
gtk_widget_show( item );
|
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)" ) );
|
item = gtk_menu_item_new_with_label( _( "Cancel (ESC)" ) );
|
||||||
g_signal_connect( G_OBJECT( item ), "activate", G_CALLBACK( Textool_Cancel ), NULL );
|
g_signal_connect( G_OBJECT( item ), "activate", G_CALLBACK( Textool_Cancel ), NULL );
|
||||||
gtk_widget_show( item );
|
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 );
|
gtk_menu_popup( GTK_MENU( menu ), NULL, NULL, NULL, NULL, 1, GDK_CURRENT_TIME );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue