I have been trying to create a new menu (for a new feature). It would
seem a straightforward modification of two files (the XML UI
description and wbcg-actions), but my changes have no visible effect.
The goal is a new "Triggers" menu between "Data" and "Help", with one
"Edit Triggers" menuitem inside. I have attached a patch of the few
lines of code that seemingly should throw up the new menu, but in fact
do nothing.
Any advice on what I am overlooking or not understanding would be
greatly appreciated.
Thanks,
Tammo
--- src/GNOME_Gnumeric-gtk.xml.in.triggers-v0 2006-03-15 15:39:24.000000000
-0500
+++ src/GNOME_Gnumeric-gtk.xml.in 2006-03-16 08:13:34.000000000 -0500
@@ -207,12 +207,16 @@
<menuitem action="PivotTable" />
-->
<menu name="ExternalData" action="MenuExternalData">
<menuitem action="DataImportText"/>
</menu>
</menu>
+ <menu name="Triggers" action="MenuTriggers">
+ <menuitem action="EditTriggers"/>
+ <separator/>
+ </menu>
<menu name="Help" action="MenuHelp">
<menuitem action="HelpDocs"/>
<menuitem action="HelpWeb"/>
<!-- <menuitem action="HelpIRC"/> -->
<menuitem action="HelpBug"/>
<separator/>
--- src/wbcg-actions.c.triggers-v0 2006-03-15 15:42:33.000000000 -0500
+++ src/wbcg-actions.c 2006-03-16 08:28:45.000000000 -0500
@@ -818,12 +818,14 @@ static GNM_ACTION_DEF (cb_data_text_to_c
static GNM_ACTION_DEF (cb_data_consolidate) { dialog_consolidate (wbcg); }
#ifdef ENABLE_PIVOTS
static GNM_ACTION_DEF (cb_data_pivottable) { dialog_pivottable (wbcg); }
#endif
+static GNM_ACTION_DEF (cb_edit_triggers) { g_printerr ("edit triggers
callback!\n"); }
+
static void
hide_show_detail_real (WorkbookControlGUI *wbcg, gboolean is_cols, gboolean
show)
{
WorkbookControl *wbc = WORKBOOK_CONTROL (wbcg);
SheetView *sv = wb_control_cur_sheet_view (wbc);
char const *operation = show ? _("Show Detail") : _("Hide Detail");
@@ -1511,6 +1513,6 @@ static GtkActionEntry const permanent_ac
{ "MenuToolsScenarios", NULL, N_("Sce_narios") },
{ "MenuToolStatisticalAnalysis", NULL, N_("Statistical
Anal_ysis") },
{ "MenuANOVA", NULL, N_("_ANOVA") },
{ "MenuToolForecast", NULL, N_("F_orecast") },
{ "MenuToolTTest", NULL, N_("Two _Means") },
{ "MenuData", NULL, N_("_Data") },
{ "MenuFilter", NULL, N_("_Filter") },
{ "MenuOutline", NULL, N_("_Group and Outline") },
{ "MenuExternalData", NULL, N_("Get _External Data") },
- { "MenuHelp", NULL, N_("_Help") },
+ { "MenuTriggers", NULL, N_("Tri_ggers") },
+ { "MenuHelp", NULL, N_("_Help") },
{ "FileClose", GTK_STOCK_CLOSE, NULL,
NULL, N_("Close the current file"),
G_CALLBACK (cb_file_close) },
{ "FileQuit", GTK_STOCK_QUIT, NULL,
NULL, N_("Quit the application"),
@@ -1557,12 +1560,16 @@ static GtkActionEntry const permanent_ac
NULL, N_("Report problem "),
G_CALLBACK (cb_help_bug) },
{ "HelpAbout", GTK_STOCK_ABOUT, N_("_About"),
NULL, N_("About this application"),
G_CALLBACK (cb_help_about) },
+ { "EditTriggers", NULL, N_("_Edit Triggers"),
+ NULL, N_("Edit sequential recalculation triggers"),
+ G_CALLBACK (cb_edit_triggers) },
+
/* Special. The sensitivity is chained to redo we do not want to
* toggle it directly so we put it in here */
{ "Repeat", NULL, N_("Repeat"),
"F4", N_("Repeat the previous action"),
G_CALLBACK (cb_repeat) }
};
_______________________________________________
gnumeric-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnumeric-list