Mercurial > mplayer.hg
diff gui/interface.c @ 33978:81aaa1420337
Replace some btnModify() calls by btnSet().
Prefer btnSet() to btnModify() if the "pressed" state is to be set.
Additionally, put parentheses around ternary operator.
| author | ib |
|---|---|
| date | Tue, 06 Sep 2011 09:29:04 +0000 |
| parents | 30a443c59053 |
| children | d99f341d8442 |
line wrap: on
line diff
--- a/gui/interface.c Tue Sep 06 08:59:44 2011 +0000 +++ b/gui/interface.c Tue Sep 06 09:29:04 2011 +0000 @@ -227,7 +227,7 @@ wsSetBackgroundRGB(&guiApp.subWindow, 0, 0, 0); if (gtkLoadFullscreen) - btnModify(evFullScreen, btnPressed); + btnSet(evFullScreen, btnPressed); guiInfo.Playing = GUI_STOP; @@ -697,7 +697,7 @@ // ...without video there will be no call to GUI_SETUP_VIDEO_WINDOW if (!guiInfo.VideoWindow) { wsVisibleWindow(&guiApp.subWindow, wsHideWindow); - btnModify(evFullScreen, gtkLoadFullscreen ? btnPressed : btnReleased); + btnSet(evFullScreen, (gtkLoadFullscreen ? btnPressed : btnReleased)); } // ...option variable fullscreen determines whether MPlayer will handle @@ -808,7 +808,7 @@ } else { wsVisibleWindow(&guiApp.subWindow, wsHideWindow); guiInfo.VideoWindow = False; - btnModify(evFullScreen, gtkLoadFullscreen ? btnPressed : btnReleased); + btnSet(evFullScreen, (gtkLoadFullscreen ? btnPressed : btnReleased)); } gui(GUI_SET_STATE, (void *)GUI_STOP);
