Mercurial > mplayer.hg
comparison gui/mplayer/gtk/about.c @ 27343:5fe6a8adf569
Rename two GUI-related preprocessor directives:
HAVE_NEW_GUI --> CONFIG_GUI, HAVE_GTK2_GUI --> CONFIG_GTK2
author | diego |
---|---|
date | Wed, 30 Jul 2008 13:44:59 +0000 |
parents | b0a7b35b78d2 |
children | 0f1b5b68af32 |
comparison
equal
deleted
inserted
replaced
27342:3a174cb28d36 | 27343:5fe6a8adf569 |
---|---|
43 GtkWidget * pixmap1; | 43 GtkWidget * pixmap1; |
44 GtkWidget * scrolledwindow1; | 44 GtkWidget * scrolledwindow1; |
45 GtkWidget * AboutText; | 45 GtkWidget * AboutText; |
46 GtkWidget * Ok; | 46 GtkWidget * Ok; |
47 | 47 |
48 #ifdef HAVE_GTK2_GUI | 48 #ifdef CONFIG_GTK2 |
49 GtkTextBuffer * AboutTextBuffer; | 49 GtkTextBuffer * AboutTextBuffer; |
50 GtkTextIter iter; | 50 GtkTextIter iter; |
51 #endif //HAVE_GTK2_GUI | 51 #endif /* CONFIG_GTK2 */ |
52 | 52 |
53 GtkStyle * pixmapstyle; | 53 GtkStyle * pixmapstyle; |
54 GdkPixmap * pixmapwid; | 54 GdkPixmap * pixmapwid; |
55 GdkBitmap * mask; | 55 GdkBitmap * mask; |
56 | 56 |
87 gtk_widget_set_name( scrolledwindow1,"scrolledwindow1" ); | 87 gtk_widget_set_name( scrolledwindow1,"scrolledwindow1" ); |
88 gtk_widget_show( scrolledwindow1 ); | 88 gtk_widget_show( scrolledwindow1 ); |
89 gtk_box_pack_start( GTK_BOX( vbox ),scrolledwindow1,TRUE,TRUE,0 ); | 89 gtk_box_pack_start( GTK_BOX( vbox ),scrolledwindow1,TRUE,TRUE,0 ); |
90 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC ); | 90 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC ); |
91 | 91 |
92 #ifdef HAVE_GTK2_GUI | 92 #ifdef CONFIG_GTK2 |
93 AboutText = gtk_text_view_new(); | 93 AboutText = gtk_text_view_new(); |
94 gtk_text_view_set_editable(GTK_TEXT_VIEW(AboutText), FALSE); | 94 gtk_text_view_set_editable(GTK_TEXT_VIEW(AboutText), FALSE); |
95 gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(AboutText), FALSE); | 95 gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(AboutText), FALSE); |
96 AboutTextBuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (AboutText)); | 96 AboutTextBuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (AboutText)); |
97 gtk_text_buffer_get_iter_at_offset (AboutTextBuffer, &iter, 0); | 97 gtk_text_buffer_get_iter_at_offset (AboutTextBuffer, &iter, 0); |
100 gtk_text_set_editable(GTK_TEXT(AboutText), FALSE); | 100 gtk_text_set_editable(GTK_TEXT(AboutText), FALSE); |
101 #endif | 101 #endif |
102 gtk_widget_set_name( AboutText,"AboutText" ); | 102 gtk_widget_set_name( AboutText,"AboutText" ); |
103 gtk_widget_show( AboutText ); | 103 gtk_widget_show( AboutText ); |
104 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText ); | 104 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText ); |
105 #ifdef HAVE_GTK2_GUI | 105 #ifdef CONFIG_GTK2 |
106 gtk_text_buffer_insert (AboutTextBuffer, &iter, | 106 gtk_text_buffer_insert (AboutTextBuffer, &iter, |
107 #else | 107 #else |
108 gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL, | 108 gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL, |
109 #endif | 109 #endif |
110 "\n" | 110 "\n" |