After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 111411 - Seg faults when Ctrl-A, Ctrl-Home, Ctrl-End is pressed with invisible cursor
Seg faults when Ctrl-A, Ctrl-Home, Ctrl-End is pressed with invisible cursor
Status: RESOLVED DUPLICATE of bug 107889
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2003-04-23 08:29 UTC by Chan Siu On
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chan Siu On 2003-04-23 08:29:16 UTC
I get seg fault after:
1) running the following program
2) Press Ctrl-A, Ctrl-Home or Ctrl-End

I'm using gtk2.2.1. I think this is related to bug 107889.

#include <gtk/gtkmain.h>
#include <gtk/gtkwindow.h>
#include <gtk/gtktextview.h>
                                                                          
     
int main(int argc, char *argv[]) {
  GtkWidget *window;
  GtkWidget *text_view;
                                                                          
     
  gtk_init (&argc, &argv);
                                                                          
     
  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
                                                                          
     
  text_view = gtk_text_view_new ();
  /* The problem does not exist without the following line: */
  gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW(text_view), FALSE);
                                                                          
     
  gtk_widget_set_size_request(text_view, 200, 200);
  gtk_container_add (GTK_CONTAINER(window), text_view);
  gtk_widget_show (text_view);
                                                                          
     
  gtk_widget_show (window);
                                                                          
     
  gtk_main ();
}
Comment 1 Matthias Clasen 2003-04-23 08:49:04 UTC

*** This bug has been marked as a duplicate of 107889 ***