};
static void action_update_menu (GtkItemFactory *ifactory,
- const gchar *branch_path,
+ gchar *branch_path,
gpointer callback,
gpointer data);
static void compose_actions_execute_cb (Compose *compose,
}
void action_update_mainwin_menu(GtkItemFactory *ifactory,
- const gchar *branch_path,
+ gchar *branch_path,
MainWindow *mainwin)
{
action_update_menu(ifactory, branch_path,
}
void action_update_msgview_menu(GtkItemFactory *ifactory,
- const gchar *branch_path,
+ gchar *branch_path,
MessageView *msgview)
{
action_update_menu(ifactory, branch_path,
}
void action_update_compose_menu(GtkItemFactory *ifactory,
- const gchar *branch_path,
+ gchar *branch_path,
Compose *compose)
{
action_update_menu(ifactory, branch_path,
}
static void action_update_menu(GtkItemFactory *ifactory,
- const gchar *branch_path,
+ gchar *branch_path,
gpointer callback, gpointer data)
{
GtkWidget *menuitem;
GList *amenu;
GtkItemFactoryEntry ifentry = {NULL, NULL, NULL, 0, "<Branch>"};
- ifentry.path = g_strdup(branch_path);
+ ifentry.path = branch_path;
menuitem = gtk_item_factory_get_widget(ifactory, branch_path);
g_return_if_fail(menuitem != NULL);
g_free(action);
ifentry.callback_action++;
}
-
- g_free(ifentry.path);
}
static void compose_actions_execute_cb(Compose *compose, guint action_nb,
gint source);
void action_update_mainwin_menu (GtkItemFactory *ifactory,
- const gchar *branch_path,
+ gchar *branch_path,
MainWindow *mainwin);
void action_update_msgview_menu (GtkItemFactory *ifactory,
- const gchar *branch_path,
+ gchar *branch_path,
MessageView *msgview);
void action_update_compose_menu (GtkItemFactory *ifactory,
- const gchar *branch_path,
+ gchar *branch_path,
Compose *compose);
#endif /* __ACTION_H__ */