Logo Search packages:      
Sourcecode: inkscape version File versions

GtkWidget* sp_ui_main_menubar ( Inkscape::UI::View::View view  ) 

Build the main tool bar.

Parameters:
view View to build the bar for
Currently the main tool bar is built as a dynamic XML menu using sp_ui_build_dyn_menus. This function builds the bar, and then pass it to get items attached to it.

Definition at line 975 of file interface.cpp.

References sp_ui_build_dyn_menus().

Referenced by sp_desktop_widget_new().

{
    GtkWidget *mbar = gtk_menu_bar_new();

#ifdef GDK_WINDOWING_QUARTZ
    ige_mac_menu_set_menu_bar(GTK_MENU_SHELL(mbar));
#endif

    sp_ui_build_dyn_menus(inkscape_get_menus(INKSCAPE), mbar, view);

#ifdef GDK_WINDOWING_QUARTZ
    return NULL;
#else
    return mbar;
#endif
}


Generated by  Doxygen 1.6.0   Back to index