summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-07-15 14:54:29 +0000
committerphintuka <phintuka>2008-07-15 14:54:29 +0000
commit668b65f5e77e06040558002557d7688813ac251c (patch)
tree0b856ea6559af8b27475488c7e601259b52a4847
parent0c7bd851e9e673c61e5753fa919f7807065aa1e3 (diff)
downloadxineliboutput-668b65f5e77e06040558002557d7688813ac251c.tar.gz
xineliboutput-668b65f5e77e06040558002557d7688813ac251c.tar.bz2
Splitting sxfe_display_open (set_icon)
-rw-r--r--xine_sxfe_frontend.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c
index 5ef51cd6..69e5879e 100644
--- a/xine_sxfe_frontend.c
+++ b/xine_sxfe_frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_sxfe_frontend.c,v 1.72 2008-06-21 15:53:46 phintuka Exp $
+ * $Id: xine_sxfe_frontend.c,v 1.73 2008-07-15 14:54:29 phintuka Exp $
*
*/
@@ -189,8 +189,6 @@ typedef struct sxfe_s {
} sxfe_t;
-#include "vdrlogo_32x32.c"
-
#define DOUBLECLICK_TIME 500 // ms
#define OSD_DEF_WIDTH 720
@@ -886,6 +884,18 @@ static int open_display(sxfe_t *this, const char *video_port)
return 1;
}
+static void set_icon(sxfe_t *this)
+{
+# include "vdrlogo_32x32.c"
+
+ /* Icon */
+ XChangeProperty(this->display, this->window[0],
+ XInternAtom(this->display, "_NET_WM_ICON", False),
+ XA_CARDINAL, 32, PropModeReplace,
+ (unsigned char *) &vdrlogo_32x32,
+ 2 + vdrlogo_32x32.width*vdrlogo_32x32.height);
+}
+
/*
* sxfe_display_open
*
@@ -1043,11 +1053,7 @@ static int sxfe_display_open(frontend_t *this_gen, int width, int height, int fu
#endif
/* Icon */
- XChangeProperty(this->display, this->window[0],
- XInternAtom(this->display, "_NET_WM_ICON", False),
- XA_CARDINAL, 32, PropModeReplace,
- (unsigned char *) &vdrlogo_32x32,
- 2 + vdrlogo_32x32.width*vdrlogo_32x32.height);
+ set_icon(this);
}
/* Map current window */