-bool C2DView::OnRButtonUp (int x, int y)
-{
- if (ViewState == View_Move)
- {
- // maybe it's time for popup menu
- if (m_bPopup)
- {
- GtkWidget *menu, *item;
-
- menu = gtk_menu_new ();
-
- item = gtk_menu_item_new_with_label ("Validate (RETURN)");
- gtk_signal_connect (GTK_OBJECT (item), "activate", GTK_SIGNAL_FUNC (Textool_Validate), NULL);
- gtk_widget_show (item);
- gtk_menu_append (GTK_MENU (menu), item);
-
- item = gtk_menu_item_new_with_label ("Zoom in (INSERT)");
- gtk_signal_connect (GTK_OBJECT (item), "activate", GTK_SIGNAL_FUNC (view_ZoomIn), this);
- gtk_widget_show (item);
- gtk_menu_append (GTK_MENU (menu), item);
-
- item = gtk_menu_item_new_with_label ("Zoom out (DELETE)");
- gtk_signal_connect (GTK_OBJECT (item), "activate", GTK_SIGNAL_FUNC (view_ZoomOut), this);
- gtk_widget_show (item);
- gtk_menu_append (GTK_MENU (menu), item);
-
- item = gtk_menu_item_new_with_label ("Cancel (ESC)");
- gtk_signal_connect (GTK_OBJECT (item), "activate", GTK_SIGNAL_FUNC (Textool_Cancel), NULL);
- gtk_widget_show (item);
- gtk_menu_append (GTK_MENU (menu), item);
-
- gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, 1, GDK_CURRENT_TIME);
- }
-
- // back to Idle mode
- ViewState = View_Idle;
- return true;
- }
- return false;
+bool C2DView::OnRButtonUp( int x, int y ){
+ if ( ViewState == View_Move ) {
+ // maybe it's time for popup menu
+ if ( m_bPopup ) {
+ GtkWidget *menu, *item;
+
+ menu = gtk_menu_new();
+
+ item = gtk_menu_item_new_with_label( "Validate (RETURN)" );
+ gtk_signal_connect( GTK_OBJECT( item ), "activate", GTK_SIGNAL_FUNC( Textool_Validate ), NULL );
+ gtk_widget_show( item );
+ gtk_menu_append( GTK_MENU( menu ), item );
+
+ item = gtk_menu_item_new_with_label( "Zoom in (INSERT)" );
+ gtk_signal_connect( GTK_OBJECT( item ), "activate", GTK_SIGNAL_FUNC( view_ZoomIn ), this );
+ gtk_widget_show( item );
+ gtk_menu_append( GTK_MENU( menu ), item );
+
+ item = gtk_menu_item_new_with_label( "Zoom out (DELETE)" );
+ gtk_signal_connect( GTK_OBJECT( item ), "activate", GTK_SIGNAL_FUNC( view_ZoomOut ), this );
+ gtk_widget_show( item );
+ gtk_menu_append( GTK_MENU( menu ), item );
+
+ item = gtk_menu_item_new_with_label( "Cancel (ESC)" );
+ gtk_signal_connect( GTK_OBJECT( item ), "activate", GTK_SIGNAL_FUNC( Textool_Cancel ), NULL );
+ gtk_widget_show( item );
+ gtk_menu_append( GTK_MENU( menu ), item );
+
+ gtk_menu_popup( GTK_MENU( menu ), NULL, NULL, NULL, NULL, 1, GDK_CURRENT_TIME );
+ }
+
+ // back to Idle mode
+ ViewState = View_Idle;
+ return true;
+ }
+ return false;