LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gummi-fix-crash-on-opening-file.patch of Package gummi (Project Publishing)

Upstream bug: http://dev.midnightcoding.org/issues/498
Index: gummi-gtk3-0.7.4.3/src/gui/gui-tabmanager.c
===================================================================
--- gummi-gtk3-0.7.4.3.orig/src/gui/gui-tabmanager.c
+++ gummi-gtk3-0.7.4.3/src/gui/gui-tabmanager.c
@@ -166,11 +166,13 @@ gchar* tabmanagergui_get_labeltext(GuTab
 
 gint tabmanagergui_replace_page(GuTabContext* tc, GuEditor* newec)
 {
+  GtkWidget *scrolled_view = GTK_WIDGET (g_active_editor->view);
+
   gummi->tabmanager->active_tab->editor = newec;
 
-  gtk_container_remove(GTK_CONTAINER(tc->page->scrollw),
-                       GTK_WIDGET(g_active_editor->view));
   editor_destroy(g_active_editor);
+  gtk_container_remove (GTK_CONTAINER (tc->page->scrollw),
+                        scrolled_view);
 
   g_object_ref(newec->view);
   gtk_container_add(GTK_CONTAINER(tc->page->scrollw),