[MPlayer-cvslog] r35737 - in trunk/gui: dialog/dialog.c wm/ws.c
ib
subversion at mplayerhq.hu
Sat Jan 12 01:04:24 CET 2013
Author: ib
Date: Sat Jan 12 01:04:24 2013
New Revision: 35737
Log:
Add doxygen comments.
Modified:
trunk/gui/dialog/dialog.c
trunk/gui/wm/ws.c
Modified: trunk/gui/dialog/dialog.c
==============================================================================
--- trunk/gui/dialog/dialog.c Sat Jan 12 00:59:01 2013 (r35736)
+++ trunk/gui/dialog/dialog.c Sat Jan 12 01:04:24 2013 (r35737)
@@ -75,6 +75,16 @@ static const char gui_icon_name[] = "mpl
guiIcon_t guiIcon;
+/**
+ * @brief Add an icon to the #guiIcon icon structure.
+ *
+ * @param theme theme to load the icon from
+ * @param size size of the icon to load
+ * @param gdkIcon location to store a pointer to the created pixmap
+ * @param gdkIconMask location to store a pointer to the created mask
+ *
+ * @return #True (ok) or #False (error)
+ */
static int gtkLoadIcon(GtkIconTheme *theme, gint size, GdkPixmap **gdkIcon, GdkBitmap **gdkIconMask)
{
GdkPixbuf *pixbuf;
@@ -115,6 +125,11 @@ static int gtkLoadIcon(GtkIconTheme *the
return (pixbuf != NULL);
}
+/**
+ * @brief Initialize the GTK user interface.
+ *
+ * @param display_name name of the X display to use or NULL (using the DISPLAY environment variable)
+ */
void gtkInit(char *display_name)
{
int argc = 0;
@@ -156,6 +171,11 @@ void gtkInit(char *display_name)
gtkInitialized = True;
}
+/**
+ * @brief Add the #guiIcon icons to a GTK window.
+ *
+ * @param window pointer to a GtkWindow widget
+ */
void gtkAddIcon(GtkWidget *window)
{
wsSetIcon(gdk_display, GDK_WINDOW_XWINDOW(window->window), &guiIcon);
@@ -242,12 +262,22 @@ void gtkMessageBox(int type, const gchar
gtk_main_iteration_do(0);
}
+/**
+ * @brief Set the layer for a GTK window.
+ *
+ * @param window pointer to a GtkWindow widget
+ */
void gtkSetLayer(GtkWidget *window)
{
wsSetLayer(gdk_display, GDK_WINDOW_XWINDOW(window->window), guiApp.videoWindow.isFullScreen);
gtkActive(window);
}
+/**
+ * @brief Activate a GTK window, i.e. raise it to the top.
+ *
+ * @param window pointer to a GtkWindow widget
+ */
void gtkActive(GtkWidget *window)
{
wsRaiseWindowTop(gdk_display, GDK_WINDOW_XWINDOW(window->window));
Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c Sat Jan 12 00:59:01 2013 (r35736)
+++ trunk/gui/wm/ws.c Sat Jan 12 01:04:24 2013 (r35737)
@@ -985,6 +985,13 @@ void wsMainLoop(void)
#define WIN_LAYER_NORMAL 4
#define WIN_LAYER_ONTOP 10
+/**
+ * @brief Set the layer for a window.
+ *
+ * @param display display
+ * @param Win window
+ * @param fullscreen whether to set fullscreen or normal layer
+ */
void wsSetLayer(Display *display, Window Win, Bool fullscreen)
{
vo_x11_setlayer(display, Win, fullscreen);
More information about the MPlayer-cvslog
mailing list