Re: Nautilus Extension




ok, German said that I am probably using the string (name) for the menu item.

There are two things:

1. Yes, I have installed the open-terminal
2. Where can I notice I am using the same string name ?

This is a part of the code:

static NautilusMenuItem *
compiler_menu_item_new (TerminalFileInfo  terminal_file_info,
                 GdkScreen        *screen,
                 gboolean          is_file_item)
{
    NautilusMenuItem *ret;
    const char *name;
    const char *tooltip;

    switch (terminal_file_info) {
        case FILE_INFO_LOCAL:
        case FILE_INFO_SFTP:
            name = _("Compile and _Run");
            if (is_file_item) {
                tooltip = _("Compile and run the currently selected file in a terminal");
            } else {
                tooltip = _("Compile the source code files in the currently open folder");
            }
            break;

        case FILE_INFO_DESKTOP:
            name = _("Create a new C/C++ program");
            tooltip = _("Create a new C/C++ program");
            break;

        case FILE_INFO_OTHER:
        default:
            g_assert_not_reached ();
    }

    ret = nautilus_menu_item_new ("NautilusCompiler::compiler",
                      name, tooltip, "gedit");
    g_object_set_data (G_OBJECT (ret),
               "NautilusCompiler::screen",
               screen);

    return ret;
}

I have edited nearly all code files, the reference to "gedit" is only for calling that editor :D instead open-terminal just for testing but it doesn't work. :S

What am I doing wrong ?



Agrega mapas e indicaciones a tu fiesta ¡Muéstrales cómo!


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]