+2003-01-09 [christoph] 0.8.8claws71
+
+ * src/compose.c
+ * src/gtk/menu.[ch]
+ fix wrong selecting of mime encoding type, when
+ opening property dialog of attachments in the
+ compose window. 7bit was always selected and that
+ destoryed files with 8bit data.
+ (closes bug #9 Sylpheed-claws destroys attachments when
+ changing MIME-types)
+
2003-01-09 [paul] 0.8.8claws70
* sync with 0.8.8cvs3
name to be edited and remarks to be entered
Patch submitted by Luke Plant
-2003-01-08 [darko]
+2003-01-08 [darko] 0.8.8claws66
* README.claws, src/summaryview.c
fix description for marked messages
MICRO_VERSION=8
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws70
+EXTRA_VERSION=claws71
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
optmenu = GTK_OPTION_MENU(attach_prop.encoding_optmenu);
if (ainfo->encoding == ENC_UNKNOWN)
- gtk_option_menu_set_history(optmenu, ENC_BASE64);
+ menu_select_by_data(gtk_option_menu_get_menu(optmenu),
+ GINT_TO_POINTER(ENC_BASE64));
else
- gtk_option_menu_set_history(optmenu, ainfo->encoding);
+ menu_select_by_data(gtk_option_menu_get_menu(optmenu),
+ GINT_TO_POINTER(ainfo->encoding));
gtk_entry_set_text(GTK_ENTRY(attach_prop.mimetype_entry),
ainfo->content_type ? ainfo->content_type : "");
}
}
+void menu_select_by_data(GtkMenu *menu, gpointer data)
+{
+ GList *children, *cur;
+ GtkWidget *select_item = NULL;
+
+ g_return_if_fail(menu != NULL);
+ children = gtk_container_children(GTK_CONTAINER(menu));
-
+ for (cur = children; cur != NULL; cur = g_list_next(cur)) {
+ GtkObject *child = GTK_OBJECT(cur->data);
+
+ if (gtk_object_get_user_data(child) == data) {
+ select_item = GTK_WIDGET(child);
+ }
+ }
+ if (select_item != NULL) {
+ gtk_menu_shell_select_item(GTK_MENU_SHELL(menu), select_item);
+ gtk_menu_shell_activate_item(GTK_MENU_SHELL(menu), select_item, FALSE);
+ }
+
+ g_list_free(children);
+}
void menu_connect_identical_items(void);
+void menu_select_by_data (GtkMenu *menu,
+ gpointer data);
+
#endif /* __MENU_H__ */