GtkWidget *sp_button_new_from_data(Inkscape::IconSize size, SPButtonType type, Inkscape::UI::View::View *view, const gchar *name, const gchar *tip) { GtkWidget *button; SPAction *action = sp_action_new(Inkscape::ActionContext(view), name, name, tip, name, 0); button = sp_button_new(size, type, action, NULL); g_object_unref(action); return button; }
GtkWidget * sp_button_new_from_data( Inkscape::IconSize size, SPButtonType type, Inkscape::UI::View::View *view, const gchar *name, const gchar *tip, GtkTooltips *tooltips ) { GtkWidget *button; SPAction *action=sp_action_new(view, name, name, tip, name, 0); button = sp_button_new (size, type, action, NULL, tooltips); nr_object_unref ((NRObject *) action); return button; }