Bug#401871: Crash in gtk frontend when some languages are selected
package: cdebconf-gtk-udeb
severity: normal
tags: patch
Try booting a gtk miniiso at default medium priority and you'll be
prompted for language choice
-Select "Danish", then back to main-menu
-Select "Language Selection" , pick "English", then back to main menu
-Select "Danish", then back to main-menu
Now you should get a GTK frontend crash, which is easily avoidable with
the attached patch.
I wasn't able to reproduce this with NEWT frontend and i even asked GTK
gurus [1] but no answer yet.
I could reproduce the crash with "Dansk" and "Dzongkha" languages only
and this does not help at all at making light on its roots, so i would
suggest to wait some more before applying this patch.
cheers
Attilio
[1]
http://mail.gnome.org/archives/gtk-app-devel-list/2006-December/msg00031.html
Index: src/modules/frontend/gtk/gtk.c
===================================================================
--- src/modules/frontend/gtk/gtk.c (revisione 43196)
+++ src/modules/frontend/gtk/gtk.c (copia locale)
@@ -259,8 +259,8 @@
void treeview_exposed_callback (GtkWidget *widget, GdkEventExpose *event, struct treeview_expose_callback_data *data)
{
GtkTreePath *path = gtk_tree_path_new_from_string (data -> path);
+ gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (widget ), path, NULL, TRUE, 0.5, 0);
gtk_tree_view_set_cursor (GTK_TREE_VIEW (widget), path, NULL, FALSE);
- gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (widget ), path, NULL, TRUE, 0.5, 0);
gtk_tree_path_free (path);
g_signal_handler_disconnect (G_OBJECT(widget), data->callback_function);
free(data);
Reply to: