Mercurial > mplayer.hg
comparison gui/dialog/about.c @ 37176:2208a16cc562
Remove GTK+ and GLib versions 1 relatedness from the GUI.
This isn't really a cut-back, because although it seemed
that compiling with GTK+ and GLib versions 1 were possible,
compiling actually hadn't been possible for quite some time.
author | ib |
---|---|
date | Mon, 08 Sep 2014 20:17:01 +0000 |
parents | 4fc2db166644 |
children |
comparison
equal
deleted
inserted
replaced
37175:ba344b4947c5 | 37176:2208a16cc562 |
---|---|
45 GtkWidget * pixmap1; | 45 GtkWidget * pixmap1; |
46 GtkWidget * scrolledwindow1; | 46 GtkWidget * scrolledwindow1; |
47 GtkWidget * AboutText; | 47 GtkWidget * AboutText; |
48 GtkWidget * Ok; | 48 GtkWidget * Ok; |
49 | 49 |
50 #ifdef CONFIG_GTK2 | |
51 GtkTextBuffer * AboutTextBuffer; | 50 GtkTextBuffer * AboutTextBuffer; |
52 GtkTextIter iter; | 51 GtkTextIter iter; |
53 #endif /* CONFIG_GTK2 */ | |
54 | 52 |
55 GtkStyle * pixmapstyle; | 53 GtkStyle * pixmapstyle; |
56 GdkPixmap * pixmapwid; | 54 GdkPixmap * pixmapwid; |
57 GdkBitmap * mask; | 55 GdkBitmap * mask; |
58 | 56 |
87 scrolledwindow1=gtk_scrolled_window_new( NULL,NULL ); | 85 scrolledwindow1=gtk_scrolled_window_new( NULL,NULL ); |
88 gtk_widget_show( scrolledwindow1 ); | 86 gtk_widget_show( scrolledwindow1 ); |
89 gtk_box_pack_start( GTK_BOX( vbox ),scrolledwindow1,TRUE,TRUE,0 ); | 87 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 ); | 88 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC ); |
91 | 89 |
92 #ifdef CONFIG_GTK2 | |
93 AboutText = gtk_text_view_new(); | 90 AboutText = gtk_text_view_new(); |
94 gtk_text_view_set_editable(GTK_TEXT_VIEW(AboutText), FALSE); | 91 gtk_text_view_set_editable(GTK_TEXT_VIEW(AboutText), FALSE); |
95 gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(AboutText), FALSE); | 92 gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(AboutText), FALSE); |
96 AboutTextBuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (AboutText)); | 93 AboutTextBuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (AboutText)); |
97 gtk_text_buffer_get_iter_at_offset (AboutTextBuffer, &iter, 0); | 94 gtk_text_buffer_get_iter_at_offset (AboutTextBuffer, &iter, 0); |
98 #else | |
99 AboutText=gtk_text_new( NULL,NULL ); | |
100 gtk_text_set_editable(GTK_TEXT(AboutText), FALSE); | |
101 #endif | |
102 gtk_widget_show( AboutText ); | 95 gtk_widget_show( AboutText ); |
103 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText ); | 96 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText ); |
104 snprintf(title, sizeof(title), MP_TITLE, MPlayer); | 97 snprintf(title, sizeof(title), MP_TITLE, MPlayer); |
105 #ifdef CONFIG_GTK2 | |
106 gtk_text_buffer_insert (AboutTextBuffer, &iter, title, -1); | 98 gtk_text_buffer_insert (AboutTextBuffer, &iter, title, -1); |
107 gtk_text_buffer_insert (AboutTextBuffer, &iter, | 99 gtk_text_buffer_insert (AboutTextBuffer, &iter, |
108 #else | |
109 gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL, title, -1 ); | |
110 gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL, | |
111 #endif | |
112 "\n" | 100 "\n" |
113 MSGTR_GUI_Sponsored":\n" | 101 MSGTR_GUI_Sponsored":\n" |
114 " http://www.uhulinux.hu/\n" | 102 " http://www.uhulinux.hu/\n" |
115 "\n" | 103 "\n" |
116 MSGTR_GUI_Contributors":\n" | 104 MSGTR_GUI_Contributors":\n" |