xfce4-terminal (from cvs): assertion failed.

Mart Tõnso mart.tonso at ttu.ee
Fri Oct 1 20:59:52 CEST 2004


I got the following error out of xfce4-terminal:

>> ** ERROR **: file main.c: line 116 (create_terminal): should not be 
>> reached
>> aborting...
>> Aborted


And fixed it like that... (Making right side scrollbar default :)


---START SNIP---
tm at sessgen xfce4-terminal $ cvs diff -u src/main.c
Index: src/main.c
===================================================================
RCS file: /cvsroot/xfce/xfce4/xfce4-terminal/src/main.c,v
retrieving revision 1.8
diff -u -r1.8 main.c
--- src/main.c  1 Oct 2004 02:42:57 -0000       1.8
+++ src/main.c  1 Oct 2004 18:54:27 -0000
@@ -108,13 +108,11 @@
                     gtk_widget_show(s->scrollbar);
                     break;
                 case TERMINAL_SCROLLBAR_RIGHT:
+                default:
                     gtk_box_pack_start(GTK_BOX(s->hbox), s->vte, TRUE,
TRUE, 0);
                     gtk_box_pack_start(GTK_BOX(s->hbox), s->scrollbar,
FALSE, TRUE, 0);
                     gtk_widget_show(s->scrollbar);
                     break;  
-                default:
-                    g_assert_not_reached();
-                    break;      
             }
         }
         else 

---END SNIP---

---
Thanks!

Mart Tõnso





More information about the Xfce4-dev mailing list