~ubuntu-branches/ubuntu/maverick/conglomerate/maverick

« back to all changes in this revision

Viewing changes to src/popup.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2005-11-08 05:07:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051108050706-bcg60nwqf1z3w0d6
Tags: 0.9.1-1ubuntu1
* Resynchronise with Debian (Closes: #4397).
  - Thanks, Jordan Mantha.

Show diffs side-by-side

added added

removed removed

Lines of Context:
586
586
 
587
587
 
588
588
static void
589
 
add_comment_menu_actions (CongDocument *doc,
590
 
                          CongNodePtr node,
591
 
                          GtkWindow *parent_window,
592
 
                          CongPrimaryWindow *primary_window)
 
589
add_node_menu_actions (CongDocument *doc,
 
590
                       CongNodePtr node,
 
591
                       GtkWindow *parent_window,
 
592
                       CongPrimaryWindow *primary_window)
593
593
{
594
594
        GtkAction *action;
595
595
 
638
638
                        /* FIXME: set sensitivity */
639
639
                }
640
640
                break;
 
641
        case CONG_NODE_TYPE_ENTITY_REF:
 
642
                /* Convert from entity reference to inline copy of that entity: */
 
643
                {
 
644
                        cong_util_add_menu_separator (primary_window,UI_PATH_CONTEXT_MENU);
 
645
 
 
646
                        action = cong_action_new ("ConvertFromEntity",
 
647
                                                  /* FIXME: could do with better text here */
 
648
                                                  _("Convert Reference into a Copy"),
 
649
                                                  /* FIXME: could do with better text here */
 
650
                                                  _("Convert a reference to an XML entity to an inline copy of that entity's content"),
 
651
                                                  NULL);
 
652
                        cong_menu_add_action (primary_window,
 
653
                                              UI_PATH_CONTEXT_MENU, 
 
654
                                              action,
 
655
                                              GTK_UI_MANAGER_MENUITEM);
 
656
                        cong_action_attach_callback_Document_SelectedNode_ParentWindow (action, 
 
657
                                                                                        cong_ui_hook_tree_convert_from_entity_ref_to_copy,
 
658
                                                                                        doc,
 
659
                                                                                        parent_window);
 
660
                        
 
661
                }
641
662
        }
642
663
}
643
664
 
830
851
        gtk_ui_manager_insert_action_group (cong_primary_window_get_ui_manager (primary_window), 
831
852
                                            s_action_group,
832
853
                                            0); 
833
 
        g_message (gtk_ui_manager_get_ui (cong_primary_window_get_ui_manager (primary_window)));
 
854
        /* g_message (gtk_ui_manager_get_ui (cong_primary_window_get_ui_manager (primary_window))); */
834
855
 
835
856
}
836
857
 
1121
1142
        }
1122
1143
 
1123
1144
        /* Convert to/from comment: */
1124
 
        add_comment_menu_actions (doc,
 
1145
        add_node_menu_actions (doc,
1125
1146
                                  node,
1126
1147
                                  parent_window,
1127
1148
                                  primary_window);