- /* we always create an exec button, if there isn't one yet
- the user might decide to change prefs_common.immediate_exec
- --> better be prepared
- */
- if (!mainwin->toolbar->exec_btn) {
- toolbar_item = g_new0(ToolbarItem, 1);
- toolbar_item->action = A_EXECUTE;
- toolbar_item->file = stock_pixmap_get_name(STOCK_PIXMAP_EXEC);
- toolbar_item->text = toolbar_ret_descr_from_val(A_EXECUTE);
-
- icon_wid = stock_pixmap_widget(container, STOCK_PIXMAP_EXEC);
- item = gtk_toolbar_append_item(GTK_TOOLBAR(toolbar),
- toolbar_item->text,
- (""),
- (""),
- icon_wid, toolbar_actions_cb,
- toolbar_item);
- mainwin->toolbar->exec_btn = item;
- g_free(toolbar_item);
- }
-
- gtk_tooltips_set_tip(GTK_TOOLTIPS(toolbar_tips),
- mainwin->toolbar->exec_btn,
- _("Execute"), NULL);
-