Mercurial > mplayer.hg
comparison Gui/mplayer/gtk/about.c @ 17086:c8bad98f63b5
About text should _not_ be editable, it just looks stupid.
author | reimar |
---|---|
date | Sun, 04 Dec 2005 15:56:40 +0000 |
parents | 683d7592d9dc |
children | d2bafb1e217c |
comparison
equal
deleted
inserted
replaced
17085:c342993c3c43 | 17086:c8bad98f63b5 |
---|---|
72 gtk_box_pack_start( GTK_BOX( vbox ),scrolledwindow1,TRUE,TRUE,0 ); | 72 gtk_box_pack_start( GTK_BOX( vbox ),scrolledwindow1,TRUE,TRUE,0 ); |
73 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC ); | 73 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC ); |
74 | 74 |
75 #ifdef HAVE_GTK2_GUI | 75 #ifdef HAVE_GTK2_GUI |
76 AboutText = gtk_text_view_new(); | 76 AboutText = gtk_text_view_new(); |
77 gtk_text_view_set_editable(GTK_TEXT_VIEW(AboutText), FALSE); | |
78 gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(AboutText), FALSE); | |
77 AboutTextBuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (AboutText)); | 79 AboutTextBuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (AboutText)); |
78 gtk_text_buffer_get_iter_at_offset (AboutTextBuffer, &iter, 0); | 80 gtk_text_buffer_get_iter_at_offset (AboutTextBuffer, &iter, 0); |
79 #else | 81 #else |
80 AboutText=gtk_text_new( NULL,NULL ); | 82 AboutText=gtk_text_new( NULL,NULL ); |
83 gtk_text_set_editable(GTK_TEXT(AboutText), FALSE); | |
81 #endif | 84 #endif |
82 gtk_widget_set_name( AboutText,"AboutText" ); | 85 gtk_widget_set_name( AboutText,"AboutText" ); |
83 gtk_widget_show( AboutText ); | 86 gtk_widget_show( AboutText ); |
84 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText ); | 87 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText ); |
85 #ifdef HAVE_GTK2_GUI | 88 #ifdef HAVE_GTK2_GUI |