Mercurial > mplayer.hg
comparison gui/mplayer/widgets.c @ 33509:645b0990ba4c
Replace GDK_WINDOW_XWINDOW by GDK_PIXMAP_XID.
Although both macros lead to the same result, GDK_PIXMAP_XID
intuitively gives the idea of what is happening.
author | ib |
---|---|
date | Sun, 12 Jun 2011 07:07:32 +0000 |
parents | 72b4bbb515f3 |
children | 140525bcc32f |
comparison
equal
deleted
inserted
replaced
33508:72b4bbb515f3 | 33509:645b0990ba4c |
---|---|
99 win=gtk_window_new( GTK_WINDOW_TOPLEVEL ); | 99 win=gtk_window_new( GTK_WINDOW_TOPLEVEL ); |
100 | 100 |
101 if ( !gdkIcon ) | 101 if ( !gdkIcon ) |
102 gdkIcon=gdk_pixmap_colormap_create_from_xpm_d( win->window,gdk_colormap_get_system(),&gdkIconMask,&win->style->bg[GTK_STATE_NORMAL],(gchar **) mplayer_xpm ); | 102 gdkIcon=gdk_pixmap_colormap_create_from_xpm_d( win->window,gdk_colormap_get_system(),&gdkIconMask,&win->style->bg[GTK_STATE_NORMAL],(gchar **) mplayer_xpm ); |
103 | 103 |
104 guiIcon=GDK_WINDOW_XWINDOW( gdkIcon ); | 104 guiIcon=GDK_PIXMAP_XID( gdkIcon ); |
105 guiIconMask=GDK_WINDOW_XWINDOW( gdkIconMask ); | 105 guiIconMask=GDK_PIXMAP_XID( gdkIconMask ); |
106 | 106 |
107 gtk_widget_destroy( win ); | 107 gtk_widget_destroy( win ); |
108 } | 108 } |
109 | 109 |
110 gtkInitialized=1; | 110 gtkInitialized=1; |