Using more meaningful constants
This commit is contained in:
parent
5f611aa548
commit
8e76ec8d2b
|
@ -40,6 +40,11 @@ struct _Panel
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/* constants */
|
||||||
|
#define PANEL_BORDER_WIDTH 4
|
||||||
|
#define PANEL_ICON_SIZE 48
|
||||||
|
|
||||||
|
|
||||||
/* prototypes */
|
/* prototypes */
|
||||||
static int _panel_exec(Panel * panel, char * command);
|
static int _panel_exec(Panel * panel, char * command);
|
||||||
|
|
||||||
|
@ -219,8 +224,8 @@ static void _on_menu_position(GtkMenu * menu, gint * x, gint * y,
|
||||||
#endif
|
#endif
|
||||||
if(req.height <= 0)
|
if(req.height <= 0)
|
||||||
return;
|
return;
|
||||||
*x = 4;
|
*x = PANEL_BORDER_WIDTH;
|
||||||
*y = panel->height - 52 - req.height;
|
*y = panel->height - PANEL_BORDER_WIDTH - PANEL_ICON_SIZE - req.height;
|
||||||
*push_in = TRUE;
|
*push_in = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user