[win32] Fix some warnings related to type differences and unused variables
This commit is contained in:
parent
4491bdbb9d
commit
04e241fd85
@ -79,72 +79,72 @@ typedef enum
|
|||||||
|
|
||||||
#define PART_SIZE 13
|
#define PART_SIZE 13
|
||||||
|
|
||||||
static const guint8 check_aa_bits[] = {
|
static const gchar check_aa_bits[] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
static const guint8 check_base_bits[] = {
|
static const gchar check_base_bits[] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0xfc, 0x07, 0xfc, 0x07, 0xfc, 0x07, 0xfc, 0x07,
|
0x00, 0x00, 0x00, 0x00, 0xfc, 0x07, 0xfc, 0x07, 0xfc, 0x07, 0xfc, 0x07,
|
||||||
0xfc, 0x07, 0xfc,
|
0xfc, 0x07, 0xfc,
|
||||||
0x07, 0xfc, 0x07, 0xfc, 0x07, 0xfc, 0x07, 0x00, 0x00, 0x00, 0x00
|
0x07, 0xfc, 0x07, 0xfc, 0x07, 0xfc, 0x07, 0x00, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
static const guint8 check_black_bits[] = {
|
static const gchar check_black_bits[] = {
|
||||||
0x00, 0x00, 0xfe, 0x0f, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00,
|
0x00, 0x00, 0xfe, 0x0f, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00,
|
||||||
0x02, 0x00, 0x02,
|
0x02, 0x00, 0x02,
|
||||||
0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00
|
0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
static const guint8 check_dark_bits[] = {
|
static const gchar check_dark_bits[] = {
|
||||||
0xff, 0x1f, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00,
|
0xff, 0x1f, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00,
|
||||||
0x01, 0x00, 0x01,
|
0x01, 0x00, 0x01,
|
||||||
0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00
|
0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00
|
||||||
};
|
};
|
||||||
static const guint8 check_light_bits[] = {
|
static const gchar check_light_bits[] = {
|
||||||
0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10,
|
0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10,
|
||||||
0x00, 0x10, 0x00,
|
0x00, 0x10, 0x00,
|
||||||
0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0xfe, 0x1f
|
0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0xfe, 0x1f
|
||||||
};
|
};
|
||||||
static const guint8 check_mid_bits[] = {
|
static const gchar check_mid_bits[] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08,
|
||||||
0x00, 0x08, 0x00,
|
0x00, 0x08, 0x00,
|
||||||
0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0xfc, 0x0f, 0x00, 0x00
|
0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0xfc, 0x0f, 0x00, 0x00
|
||||||
};
|
};
|
||||||
static const guint8 check_text_bits[] = {
|
static const gchar check_text_bits[] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x03, 0x88, 0x03,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x03, 0x88, 0x03,
|
||||||
0xd8, 0x01, 0xf8,
|
0xd8, 0x01, 0xf8,
|
||||||
0x00, 0x70, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
0x00, 0x70, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
static const char check_inconsistent_bits[] = {
|
static const gchar check_inconsistent_bits[] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0xf0, 0x03, 0xf0,
|
0xf0, 0x03, 0xf0,
|
||||||
0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
static const guint8 radio_base_bits[] = {
|
static const gchar radio_base_bits[] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0xf0, 0x01, 0xf8, 0x03, 0xfc, 0x07, 0xfc, 0x07,
|
0x00, 0x00, 0x00, 0x00, 0xf0, 0x01, 0xf8, 0x03, 0xfc, 0x07, 0xfc, 0x07,
|
||||||
0xfc, 0x07, 0xfc,
|
0xfc, 0x07, 0xfc,
|
||||||
0x07, 0xfc, 0x07, 0xf8, 0x03, 0xf0, 0x01, 0x00, 0x00, 0x00, 0x00
|
0x07, 0xfc, 0x07, 0xf8, 0x03, 0xf0, 0x01, 0x00, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
static const guint8 radio_black_bits[] = {
|
static const gchar radio_black_bits[] = {
|
||||||
0x00, 0x00, 0xf0, 0x01, 0x0c, 0x02, 0x04, 0x00, 0x02, 0x00, 0x02, 0x00,
|
0x00, 0x00, 0xf0, 0x01, 0x0c, 0x02, 0x04, 0x00, 0x02, 0x00, 0x02, 0x00,
|
||||||
0x02, 0x00, 0x02,
|
0x02, 0x00, 0x02,
|
||||||
0x00, 0x02, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
0x00, 0x02, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
static const guint8 radio_dark_bits[] = {
|
static const gchar radio_dark_bits[] = {
|
||||||
0xf0, 0x01, 0x0c, 0x06, 0x02, 0x00, 0x02, 0x00, 0x01, 0x00, 0x01, 0x00,
|
0xf0, 0x01, 0x0c, 0x06, 0x02, 0x00, 0x02, 0x00, 0x01, 0x00, 0x01, 0x00,
|
||||||
0x01, 0x00, 0x01,
|
0x01, 0x00, 0x01,
|
||||||
0x00, 0x01, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00
|
0x00, 0x01, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
static const guint8 radio_light_bits[] = {
|
static const gchar radio_light_bits[] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x10, 0x00, 0x10,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x10, 0x00, 0x10,
|
||||||
0x00, 0x10, 0x00,
|
0x00, 0x10, 0x00,
|
||||||
0x10, 0x00, 0x10, 0x00, 0x08, 0x00, 0x08, 0x0c, 0x06, 0xf0, 0x01
|
0x10, 0x00, 0x10, 0x00, 0x08, 0x00, 0x08, 0x0c, 0x06, 0xf0, 0x01
|
||||||
};
|
};
|
||||||
static const guint8 radio_mid_bits[] = {
|
static const gchar radio_mid_bits[] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x08, 0x00, 0x08,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x08, 0x00, 0x08,
|
||||||
0x00, 0x08, 0x00,
|
0x00, 0x08, 0x00,
|
||||||
0x08, 0x00, 0x08, 0x00, 0x04, 0x0c, 0x06, 0xf0, 0x01, 0x00, 0x00
|
0x08, 0x00, 0x08, 0x00, 0x04, 0x0c, 0x06, 0xf0, 0x01, 0x00, 0x00
|
||||||
};
|
};
|
||||||
static const guint8 radio_text_bits[] = {
|
static const gchar radio_text_bits[] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0xf0, 0x01,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0xf0, 0x01,
|
||||||
0xf0, 0x01, 0xf0,
|
0xf0, 0x01, 0xf0,
|
||||||
0x01, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
0x01, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||||
@ -152,7 +152,7 @@ static const guint8 radio_text_bits[] = {
|
|||||||
|
|
||||||
static struct
|
static struct
|
||||||
{
|
{
|
||||||
const guint8 *bits;
|
const gchar *bits;
|
||||||
GdkBitmap *bmap;
|
GdkBitmap *bmap;
|
||||||
} parts[] = {
|
} parts[] = {
|
||||||
{ check_aa_bits, NULL },
|
{ check_aa_bits, NULL },
|
||||||
@ -562,7 +562,6 @@ static void
|
|||||||
setup_menu_settings (GtkSettings *settings)
|
setup_menu_settings (GtkSettings *settings)
|
||||||
{
|
{
|
||||||
int menu_delay;
|
int menu_delay;
|
||||||
OSVERSIONINFOEX osvi;
|
|
||||||
GObjectClass *klazz = G_OBJECT_GET_CLASS (G_OBJECT (settings));
|
GObjectClass *klazz = G_OBJECT_GET_CLASS (G_OBJECT (settings));
|
||||||
|
|
||||||
if (get_windows_version () > WIN95_VERSION)
|
if (get_windows_version () > WIN95_VERSION)
|
||||||
@ -2261,8 +2260,6 @@ draw_box (GtkStyle *style,
|
|||||||
}
|
}
|
||||||
else if (detail && !strcmp (detail, "notebook") && GTK_IS_NOTEBOOK (widget))
|
else if (detail && !strcmp (detail, "notebook") && GTK_IS_NOTEBOOK (widget))
|
||||||
{
|
{
|
||||||
GtkNotebook *notebook = GTK_NOTEBOOK (widget);
|
|
||||||
|
|
||||||
if (xp_theme_draw (window, XP_THEME_ELEMENT_TAB_PANE, style,
|
if (xp_theme_draw (window, XP_THEME_ELEMENT_TAB_PANE, style,
|
||||||
x, y, width, height, state_type, area))
|
x, y, width, height, state_type, area))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user