Mercurial > mplayer.hg
diff Gui/mplayer/gtk/about.c @ 16246:683d7592d9dc
Support for GTK 2.x.
Patch by Onur Kucuk (onur . delipenguen net).
author | reimar |
---|---|
date | Wed, 17 Aug 2005 18:41:15 +0000 |
parents | 5f154628f928 |
children | c8bad98f63b5 |
line wrap: on
line diff
--- a/Gui/mplayer/gtk/about.c Wed Aug 17 17:36:45 2005 +0000 +++ b/Gui/mplayer/gtk/about.c Wed Aug 17 18:41:15 2005 +0000 @@ -28,6 +28,11 @@ GtkWidget * AboutText; GtkWidget * Ok; +#ifdef HAVE_GTK2_GUI + GtkTextBuffer * AboutTextBuffer; + GtkTextIter iter; +#endif //HAVE_GTK2_GUI + GtkStyle * pixmapstyle; GdkPixmap * pixmapwid; GdkBitmap * mask; @@ -67,11 +72,21 @@ gtk_box_pack_start( GTK_BOX( vbox ),scrolledwindow1,TRUE,TRUE,0 ); gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC ); +#ifdef HAVE_GTK2_GUI + AboutText = gtk_text_view_new(); + AboutTextBuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (AboutText)); + gtk_text_buffer_get_iter_at_offset (AboutTextBuffer, &iter, 0); +#else AboutText=gtk_text_new( NULL,NULL ); +#endif gtk_widget_set_name( AboutText,"AboutText" ); gtk_widget_show( AboutText ); gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText ); +#ifdef HAVE_GTK2_GUI + gtk_text_buffer_insert (AboutTextBuffer, &iter, +#else gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL, +#endif "\n" MSGTR_ABOUT_UHU " (http://www.uhulinux.hu/)\n"